• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/expat-2.0.1/tests/

Lines Matching refs:text

71 _expect_failure(char *text, enum XML_Error errorCode, char *errorMessage,
74 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_OK)
82 #define expect_failure(text, errorCode, errorMessage) \
83 _expect_failure((text), (errorCode), (errorMessage), \
157 char text[] = "<doc>\0</doc>";
160 if (XML_Parse(parser, text, sizeof(text) - 1, XML_TRUE) == XML_STATUS_OK)
180 char *text = "\357\273\277<e/>";
182 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
189 char text[] = "\376\377\0<\0e\0/\0>";
191 if (XML_Parse(parser, text, sizeof(text)-1, XML_TRUE) == XML_STATUS_ERROR)
198 char text[] = "\377\376<\0e\0/\0>\0";
200 if (XML_Parse(parser, text, sizeof(text)-1, XML_TRUE) == XML_STATUS_ERROR)
224 _run_character_check(XML_Char *text, XML_Char *expected,
232 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
237 #define run_character_check(text, expected) \
238 _run_character_check(text, expected, __FILE__, __LINE__)
241 _run_attribute_check(XML_Char *text, XML_Char *expected,
249 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
254 #define run_attribute_check(text, expected) \
255 _run_attribute_check(text, expected, __FILE__, __LINE__)
260 char *text =
263 run_character_check(text,
272 char *text =
275 run_character_check(text,
282 char *text =
285 run_character_check(text,
292 char *text =
295 run_character_check(text,
302 char *text =
305 run_character_check(text, "\xC3\xA9");
316 char *text = "<doc>\xEF\xBA\xBF</doc>";
317 run_character_check(text, "\xEF\xBA\xBF");
328 char text[100];
332 sprintf(text, "<e>%ccd</e>", i);
333 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_OK) {
334 sprintf(text,
335 "expected token error for '%c' (ordinal %d) in UTF-8 text",
337 fail(text);
350 <doc a='123'>some text</doc>
352 char text[] =
360 if (XML_Parse(parser, text, sizeof(text)-1, XML_TRUE) == XML_STATUS_ERROR)
368 char text[] =
373 if (first_chunk_bytes >= sizeof(text) - 1)
375 if ( XML_Parse(parser, text, first_chunk_bytes, XML_FALSE)
380 rc = XML_Parse(parser, text + first_chunk_bytes,
381 sizeof(text) - first_chunk_bytes - 1, XML_TRUE);
391 char *text =
399 run_character_check(text, utf8);
401 run_attribute_check(text, utf8);
408 char *text =
414 if (XML_Parse(parser, text, strlen(text), XML_FALSE) == XML_STATUS_ERROR)
429 char *text = "<tag></tag>";
432 if (XML_Parse(parser, text, strlen(text), XML_FALSE) == XML_STATUS_ERROR)
476 char *text =
502 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
512 char *text =
517 if (XML_Parse(parser, text, strlen(text), XML_FALSE) != XML_STATUS_ERROR)
532 char *text =
537 if (XML_Parse(parser, text, strlen(text), XML_FALSE) != XML_STATUS_ERROR)
558 char *text =
580 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
600 char *text = "<a><b><c/></b><d><f/></d></a>";
607 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
704 char *text =
720 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
758 char *text =
764 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
777 /* This text says it's an unsupported encoding, but it's really
780 char *text =
790 if ( XML_Parse(extparser, text, strlen(text), XML_TRUE)
800 char *text =
808 run_character_check(text, "\xC3\xA9");
816 char *text =
820 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
839 char *text =
844 expect_failure(text,
857 char *text = (char *)XML_GetUserData(parser);
863 if ( XML_Parse(extparser, text, strlen(text), XML_TRUE)
875 char *text =
885 expect_failure(text,
895 char *text =
905 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
912 char *text =
918 expect_failure(text,
927 char *text =
947 run_character_check(text, "\n\n\n\n\n\n\n<doc/>");
959 char *text =
964 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
975 char *text =
982 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1031 char *text = long_character_data_text;
1035 if (XML_Parse(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR)
1052 char *text = long_character_data_text;
1056 if (XML_Parse(parser, text, strlen(text), XML_TRUE) != XML_STATUS_SUSPENDED)
1120 char *text =
1130 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1160 run_ns_tagname_overwrite_test(char *text, char *result)
1167 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1175 char *text =
1189 run_ns_tagname_overwrite_test(text, result);
1196 char *text =
1211 run_ns_tagname_overwrite_test(text, result);
1239 char *text = "<e xmlns='http://xml.libexpat.org/'></e>";
1244 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1258 char *text;
1262 text = ("<!ELEMENT doc (e+)>\n"
1266 text = ("<?xml version='1.0' encoding='us-ascii'?>"
1271 if (XML_Parse(p2, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR) {
1281 char *text =
1295 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1303 char *text =
1308 expect_failure(text,
1318 char *text =
1322 expect_failure(text,
1331 char *text =
1339 expect_failure(text,
1348 char *text =
1364 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1371 char *text =
1375 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
1383 char *text =
1387 expect_failure(text,
1396 char *text = "<doc a:attr=''/>";
1397 expect_failure(text,
1406 char *text = "<a:doc/>";
1407 expect_failure(text,