Lines Matching refs:XML_Char
205 dummy_xdecl_handler(void *userData, const XML_Char *version,
206 const XML_Char *encoding, int standalone) {
214 dummy_start_doctype_handler(void *userData, const XML_Char *doctypeName,
215 const XML_Char *sysid, const XML_Char *pubid,
232 dummy_entity_decl_handler(void *userData, const XML_Char *entityName,
233 int is_parameter_entity, const XML_Char *value,
234 int value_length, const XML_Char *base,
235 const XML_Char *systemId, const XML_Char *publicId,
236 const XML_Char *notationName) {
250 dummy_notation_decl_handler(void *userData, const XML_Char *notationName,
251 const XML_Char *base, const XML_Char *systemId,
252 const XML_Char *publicId) {
262 dummy_element_decl_handler(void *userData, const XML_Char *name,
275 dummy_attlist_decl_handler(void *userData, const XML_Char *elname,
276 const XML_Char *attname, const XML_Char *att_type,
277 const XML_Char *dflt, int isrequired) {
288 dummy_comment_handler(void *userData, const XML_Char *data) {
295 dummy_pi_handler(void *userData, const XML_Char *target, const XML_Char *data) {
303 dummy_start_element(void *userData, const XML_Char *name,
304 const XML_Char **atts) {
312 dummy_end_element(void *userData, const XML_Char *name) {
330 dummy_cdata_handler(void *userData, const XML_Char *s, int len) {
337 dummy_start_namespace_decl_handler(void *userData, const XML_Char *prefix,
338 const XML_Char *uri) {
346 dummy_end_namespace_decl_handler(void *userData, const XML_Char *prefix) {
356 dummy_unparsed_entity_decl_handler(void *userData, const XML_Char *entityName,
357 const XML_Char *base,
358 const XML_Char *systemId,
359 const XML_Char *publicId,
360 const XML_Char *notationName) {
371 dummy_default_handler(void *userData, const XML_Char *s, int len) {
378 dummy_start_doctype_decl_handler(void *userData, const XML_Char *doctypeName,
379 const XML_Char *sysid, const XML_Char *pubid,
396 dummy_skip_handler(void *userData, const XML_Char *entityName,
406 const XML_Char *system_id;
411 external_entity_optioner(XML_Parser parser, const XML_Char *context,
412 const XML_Char *base, const XML_Char *systemId,
413 const XML_Char *publicId) {
442 static const XML_Char *entity_name_to_match = NULL;
443 static const XML_Char *entity_value_to_match = NULL;
447 param_entity_match_handler(void *userData, const XML_Char *entityName,
448 int is_parameter_entity, const XML_Char *value,
449 int value_length, const XML_Char *base,
450 const XML_Char *systemId, const XML_Char *publicId,
451 const XML_Char *notationName) {
572 accumulate_characters(void *userData, const XML_Char *s, int len) {
577 accumulate_attribute(void *userData, const XML_Char *name,
578 const XML_Char **atts) {
593 _run_character_check(const char *text, const XML_Char *expected,
610 _run_attribute_check(const char *text, const XML_Char *expected,
628 const XML_Char *encoding;
633 ext_accumulate_characters(void *userData, const XML_Char *s, int len) {
640 const XML_Char *expected, const char *file, int line) {
663 const XML_Char *expected
666 const XML_Char *expected
678 const XML_Char *expected = XCS("\x00e9\x00e8\x00e0\x00e7\x00ea\x00c8");
680 const XML_Char *expected
691 const XML_Char *expected = XCS("\x00e9\x00e8\x00e0\x00e7\x00ea\x00c8");
693 const XML_Char *expected
704 const XML_Char *expected = XCS("\x00e9\x00e8\x00e0\x00e7\x00ea\x00c8");
706 const XML_Char *expected
717 const XML_Char *expected = XCS("\x00e9");
719 const XML_Char *expected = XCS("\xC3\xA9");
733 const XML_Char *expected = XCS("\xfebf");
735 const XML_Char *expected = XCS("\xEF\xBA\xBF");
841 const XML_Char *expected = XCS("some \xff21 text");
843 const XML_Char *expected = XCS("some \357\274\241 text");
910 const XML_Char *expected = XCS("\x00e4 \x00f6 \x00fc ")
914 const XML_Char *expected = XCS("\xC3\xA4 \xC3\xB6 \xC3\xBC ")
969 const XML_Char *expected =
1024 const XML_Char *expected =
1089 start_element_event_handler2(void *userData, const XML_Char *name,
1090 const XML_Char **attr) {
1098 end_element_event_handler2(void *userData, const XML_Char *name) {
1258 start_element_event_handler(void *userData, const XML_Char *name,
1259 const XML_Char **atts) {
1265 end_element_event_handler(void *userData, const XML_Char *name) {
1273 const XML_Char *expected = XCS("/c/b/f/d/a");
1300 is_whitespace_normalized(const XML_Char *s, int is_cdata) {
1350 check_attr_contains_normalized_whitespace(void *userData, const XML_Char *name,
1351 const XML_Char **atts) {
1356 const XML_Char *attrname = atts[i];
1357 const XML_Char *value = atts[i + 1];
1431 UnknownEncodingHandler(void *data, const XML_Char *encoding,
1465 UnrecognisedEncodingHandler(void *data, const XML_Char *encoding,
1489 external_entity_loader(XML_Parser parser, const XML_Char *context,
1490 const XML_Char *base, const XML_Char *systemId,
1491 const XML_Char *publicId) {
1526 const XML_Char *expected = XCS("\x00e9");
1528 const XML_Char *expected = XCS("\xc3\xa9");
1559 const XML_Char *expected = XCS("\x00e9");
1561 const XML_Char *expected = XCS("\xc3\xa9");
1573 const XML_Char *encoding;
1578 external_entity_faulter(XML_Parser parser, const XML_Char *context,
1579 const XML_Char *base, const XML_Char *systemId,
1580 const XML_Char *publicId) {
1846 const XML_Char *element_name;
1847 const XML_Char *attr_name;
1848 const XML_Char *attr_type;
1849 const XML_Char *default_value;
1854 verify_attlist_decl_handler(void *userData, const XML_Char *element_name,
1855 const XML_Char *attr_name,
1856 const XML_Char *attr_type,
1857 const XML_Char *default_value, int is_required) {
1983 clearing_aborting_character_handler(void *userData, const XML_Char *s,
2043 parser_stop_character_handler(void *userData, const XML_Char *s, int len) {
2099 const XML_Char *expected = XCS("<greeting>Hello, world!</greeting>");
2141 const XML_Char *expected = XCS("hello");
2168 const XML_Char *expected = XCS("hello");
2220 const XML_Char *expected =
2280 const XML_Char *expected = XCS("\xd834\xdd5e\xd834\xdd5f");
2282 const XML_Char *expected = XCS("\xf0\x9d\x85\x9e\xf0\x9d\x85\x9f");
2540 record_default_handler(void *userData, const XML_Char *s, int len) {
2547 record_cdata_handler(void *userData, const XML_Char *s, int len) {
2555 record_cdata_nodefault_handler(void *userData, const XML_Char *s, int len) {
2562 record_skip_handler(void *userData, const XML_Char *entityName,
2774 external_entity_null_loader(XML_Parser parser, const XML_Char *context,
2775 const XML_Char *base, const XML_Char *systemId,
2776 const XML_Char *publicId) {
2813 const XML_Char *old_base;
2814 const XML_Char *new_base = XCS("/local/file/name.xml");
2831 const XML_Char *name;
2832 const XML_Char *value;
2836 const XML_Char *name;
2838 const XML_Char *id_name;
2843 counting_start_element_handler(void *userData, const XML_Char *name,
2844 const XML_Char **atts) {
2987 const XML_Char *expected = XCS("<doc><![CDATA[Hello\nworld]]></doc>");
3003 external_entity_resetter(XML_Parser parser, const XML_Char *context,
3004 const XML_Char *base, const XML_Char *systemId,
3005 const XML_Char *publicId) {
3063 entity_suspending_decl_handler(void *userData, const XML_Char *name,
3077 external_entity_suspender(XML_Parser parser, const XML_Char *context,
3078 const XML_Char *base, const XML_Char *systemId,
3079 const XML_Char *publicId) {
3116 entity_suspending_xdecl_handler(void *userData, const XML_Char *version,
3117 const XML_Char *encoding, int standalone) {
3128 external_entity_suspend_xmldecl(XML_Parser parser, const XML_Char *context,
3129 const XML_Char *base, const XML_Char *systemId,
3130 const XML_Char *publicId) {
3198 external_entity_suspending_faulter(XML_Parser parser, const XML_Char *context,
3199 const XML_Char *base,
3200 const XML_Char *systemId,
3201 const XML_Char *publicId) {
3289 cr_cdata_handler(void *userData, const XML_Char *s, int len) {
3328 external_entity_cr_catcher(XML_Parser parser, const XML_Char *context,
3329 const XML_Char *base, const XML_Char *systemId,
3330 const XML_Char *publicId) {
3349 external_entity_bad_cr_catcher(XML_Parser parser, const XML_Char *context,
3350 const XML_Char *base, const XML_Char *systemId,
3351 const XML_Char *publicId) {
3404 rsqb_handler(void *userData, const XML_Char *s, int len) {
3454 external_entity_rsqb_catcher(XML_Parser parser, const XML_Char *context,
3455 const XML_Char *base, const XML_Char *systemId,
3456 const XML_Char *publicId) {
3497 external_entity_good_cdata_ascii(XML_Parser parser, const XML_Char *context,
3498 const XML_Char *base, const XML_Char *systemId,
3499 const XML_Char *publicId) {
3501 const XML_Char *expected = XCS("<greeting>Hello, world!</greeting>");
3549 xml_decl_handler(void *userData, const XML_Char *version,
3550 const XML_Char *encoding, int standalone) {
3561 param_check_skip_handler(void *userData, const XML_Char *entityName,
3571 data_check_comment_handler(void *userData, const XML_Char *data) {
3583 external_entity_param_checker(XML_Parser parser, const XML_Char *context,
3584 const XML_Char *base, const XML_Char *systemId,
3585 const XML_Char *publicId) {
3656 external_entity_ref_param_checker(XML_Parser parameter, const XML_Char *context,
3657 const XML_Char *base,
3658 const XML_Char *systemId,
3659 const XML_Char *publicId) {
3893 byte_character_handler(void *userData, const XML_Char *s, int len) {
3948 const XML_Char *expected = XCS("<doc><>&"'</doc>");
3949 const XML_Char *result = XCS("<>&\"'");
3979 external_entity_param(XML_Parser parser, const XML_Char *context,
3980 const XML_Char *base, const XML_Char *systemId,
3981 const XML_Char *publicId) {
4047 external_entity_load_ignore(XML_Parser parser, const XML_Char *context,
4048 const XML_Char *base, const XML_Char *systemId,
4049 const XML_Char *publicId) {
4070 const XML_Char *expected
4092 external_entity_load_ignore_utf16(XML_Parser parser, const XML_Char *context,
4093 const XML_Char *base,
4094 const XML_Char *systemId,
4095 const XML_Char *publicId) {
4124 const XML_Char *expected = XCS("<![IGNORE[<!ELEMENT e (#PCDATA)*>]]>\n&en;");
4145 external_entity_load_ignore_utf16_be(XML_Parser parser, const XML_Char *context,
4146 const XML_Char *base,
4147 const XML_Char *systemId,
4148 const XML_Char *publicId) {
4177 const XML_Char *expected = XCS("<![IGNORE[<!ELEMENT e (#PCDATA)*>]]>\n&en;");
4226 external_entity_valuer(XML_Parser parser, const XML_Char *context,
4227 const XML_Char *base, const XML_Char *systemId,
4228 const XML_Char *publicId) {
4316 external_entity_not_standalone(XML_Parser parser, const XML_Char *context,
4317 const XML_Char *base, const XML_Char *systemId,
4318 const XML_Char *publicId) {
4364 external_entity_value_aborter(XML_Parser parser, const XML_Char *context,
4365 const XML_Char *base, const XML_Char *systemId,
4366 const XML_Char *publicId) {
4435 const XML_Char *expected = XCS("This is a \n \n\nyellow tiger");
4497 record_element_start_handler(void *userData, const XML_Char *name,
4498 const XML_Char **atts) {
4554 external_entity_public(XML_Parser parser, const XML_Char *context,
4555 const XML_Char *base, const XML_Char *systemId,
4556 const XML_Char *publicId) {
4642 external_entity_devaluer(XML_Parser parser, const XML_Char *context,
4643 const XML_Char *base, const XML_Char *systemId,
4644 const XML_Char *publicId) {
4695 aborting_xdecl_handler(void *userData, const XML_Char *version,
4696 const XML_Char *encoding, int standalone) {
4727 selective_aborting_default_handler(void *userData, const XML_Char *s, int len) {
4728 const XML_Char *match = (const XML_Char *)userData;
4739 XML_Char match[] = XCS("\r");
4755 XML_Char match[] = XCS("\n");
4767 XML_Char match[] = XCS("\n");
4779 suspending_end_handler(void *userData, const XML_Char *s) {
4856 start_element_suspender(void *userData, const XML_Char *name,
4857 const XML_Char **atts) {
4872 const XML_Char *expected1 = XCS("Hi");
4873 const XML_Char *expected2 = XCS("HiHo");
4913 element_decl_suspender(void *userData, const XML_Char *name,
4927 const XML_Char *expected = XCS("Hello, world");
5033 external_entity_oneshot_loader(XML_Parser parser, const XML_Char *context,
5034 const XML_Char *base, const XML_Char *systemId,
5035 const XML_Char *publicId) {
5183 const XML_Char *expected = XCS("<?test processing instruction?>\n<doc/>");
5199 const XML_Char *expected = XCS("<!-- This is a comment -->\n<doc/>");
5214 accumulate_pi_characters(void *userData, const XML_Char *target,
5215 const XML_Char *data) {
5226 const XML_Char *expected = XCS("yml: something like data\n");
5241 const XML_Char *expected = XCS("xnl: nothing like data\n");
5256 const XML_Char *expected = XCS("xmm: everything like data\n");
5279 const XML_Char *expected = XCS("\x0e04\x0e08: \n");
5281 const XML_Char *expected = XCS("\xe0\xb8\x84\xe0\xb8\x88: \n");
5305 const XML_Char *expected = XCS("\x0e04\x0e08: \n");
5307 const XML_Char *expected = XCS("\xe0\xb8\x84\xe0\xb8\x88: \n");
5323 accumulate_comment(void *userData, const XML_Char *data) {
5335 const XML_Char *expected = XCS(" Comment A ");
5354 const XML_Char *expected = XCS(" Comment B ");
5389 MiscEncodingHandler(void *data, const XML_Char *encoding, XML_Encoding *info) {
5507 const XML_Char *expected = XCS("abcdefghabcdefghabcdefghijklmnop");
5529 const XML_Char *expected = XCS("abcdefghabcdefghabcdefghijklmnop");
5630 const XML_Char *encoding;
5636 external_entity_loader2(XML_Parser parser, const XML_Char *context,
5637 const XML_Char *base, const XML_Char *systemId,
5638 const XML_Char *publicId) {
5670 ext2_accumulate_characters(void *userData, const XML_Char *s, int len) {
5687 const XML_Char *expected = XCS("\x00ff\x00feL ");
5690 const XML_Char *expected = XCS("\xc3\xbf\xc3\xbeL ");
5718 const XML_Char *expected = XCS("\x00fe\x00ff L");
5721 const XML_Char *expected = XCS("\xc3\xbe\xc3\xbf L");
5753 const XML_Char *expected = XCS("\x00ff\x00feL ");
5756 const XML_Char *expected = XCS("\xc3\xbf\xc3\xbeL ");
5784 const XML_Char *expected = XCS("\x00fe\x00ff L");
5787 const XML_Char *expected = "\xc3\xbe\xc3\xbf L";
5812 const XML_Char *expected = XCS("\x3c00\x6500\x2f00\x3e00");
5814 const XML_Char *expected = XCS("\xe3\xb0\x80" /* U+3C00 */
5842 const XML_Char *expected = XCS("\x3c00\x6500\x2f00\x3e00");
5844 const XML_Char *expected = XCS("\xe3\xb0\x80" /* U+3C00 */
5874 const XML_Char *encoding;
5879 external_entity_faulter2(XML_Parser parser, const XML_Char *context,
5880 const XML_Char *base, const XML_Char *systemId,
5881 const XML_Char *publicId) {
5932 const XML_Char *expected = XCS("\xfec0");
5934 const XML_Char *expected = XCS("\xef\xbb\x80");
5954 const XML_Char *expected = XCS("one \x00e9 two");
5956 const XML_Char *expected = XCS("one \xc3\xa9 two");
5967 const XML_Char *expected = XCS("\x00e9]\x00e9two");
5969 const XML_Char *expected = XCS("\xc3\xa9]\xc3\xa9two");
5978 record_element_end_handler(void *userData, const XML_Char *name) {
5987 const XML_Char *expected = XCS("doc/doc");
6008 const XML_Char *expected = XCS("a");
6028 const XML_Char *expected = XCS("1");
6049 accumulate_entity_decl(void *userData, const XML_Char *entityName,
6050 int is_parameter_entity, const XML_Char *value,
6051 int value_length, const XML_Char *base,
6052 const XML_Char *systemId, const XML_Char *publicId,
6053 const XML_Char *notationName) {
6085 const XML_Char *expected = XCS("\x0e04\x0e08=<!ELEMENT doc (#PCDATA)>\n");
6087 const XML_Char *expected
6222 const XML_Char *expected = XCS("\x00e4 \x00e4");
6224 const XML_Char *expected = XCS("\xc3\xa4 \xc3\xa4");
6244 const XML_Char *expected = XCS("\x00e4 \x00e4");
6246 const XML_Char *expected = XCS("\xc3\xa4 \xc3\xa4");
6276 const XML_Char *expected = XCS("baz");
6308 const XML_Char *expected = XCS("baz");
6407 const XML_Char *expected;
6413 checking_default_handler(void *userData, const XML_Char *s, int len) {
6419 && ! memcmp(data[i].expected, s, len * sizeof(XML_Char))) {
6483 triplet_start_checker(void *userData, const XML_Char *name,
6484 const XML_Char **atts) {
6485 XML_Char **elemstr = (XML_Char **)userData;
6503 triplet_end_checker(void *userData, const XML_Char *name) {
6504 XML_Char **elemstr = (XML_Char **)userData;
6517 const XML_Char *elemstr[]
6546 overwrite_start_checker(void *userData, const XML_Char *name,
6547 const XML_Char **atts) {
6560 overwrite_end_checker(void *userData, const XML_Char *name) {
6568 run_ns_tagname_overwrite_test(const char *text, const XML_Char *result) {
6586 const XML_Char *result = XCS("start http://example.org/ e\n")
6604 const XML_Char *result = XCS("start http://example.org/ e n\n")
6619 start_element_fail(void *userData, const XML_Char *name,
6620 const XML_Char **atts) {
6630 start_ns_clearing_start_element(void *userData, const XML_Char *prefix,
6631 const XML_Char *uri) {
6656 external_entity_handler(XML_Parser parser, const XML_Char *context,
6657 const XML_Char *base, const XML_Char *systemId,
6658 const XML_Char *publicId) {
6752 const XML_Char *elemstr[] = {XCS("http://example.org/ doc prefix")};
6872 const XML_Char *elemstr[]
7091 const XML_Char *expected = XCS("a");
7111 const XML_Char *expected = XCS("URI \x0e04");
7113 const XML_Char *expected = XCS("URI \xe0\xb8\x84");
7141 const XML_Char *expected = XCS("URI \x0e04");
7143 const XML_Char *expected = XCS("URI \xe0\xb8\x84");
7357 if (features->value != sizeof(XML_Char))
7358 fail("Incorrect size of XML_Char");
7399 const XML_Char *expected = XCS("Hi");
7422 start_element_issue_240(void *userData, const XML_Char *name,
7423 const XML_Char **atts) {
7431 end_element_issue_240(void *userData, const XML_Char *name) {
7595 long_encoding_handler(void *userData, const XML_Char *encoding,
7797 external_entity_duff_loader(XML_Parser parser, const XML_Char *context,
7798 const XML_Char *base, const XML_Char *systemId,
7799 const XML_Char *publicId) {
7876 external_entity_dbl_handler(XML_Parser parser, const XML_Char *context,
7877 const XML_Char *base, const XML_Char *systemId,
7878 const XML_Char *publicId) {
7953 external_entity_dbl_handler_2(XML_Parser parser, const XML_Char *context,
7954 const XML_Char *base, const XML_Char *systemId,
7955 const XML_Char *publicId) {
8024 external_entity_alloc_set_encoding(XML_Parser parser, const XML_Char *context,
8025 const XML_Char *base,
8026 const XML_Char *systemId,
8027 const XML_Char *publicId) {
8080 unknown_released_encoding_handler(void *data, const XML_Char *encoding,
8138 const XML_Char *expected = XCS("\n\n\n\n\n\n\n\n\n<doc>text in doc</doc>");
8204 const XML_Char *new_base = XCS("/local/file/name.xml");
8252 external_entity_reallocator(XML_Parser parser, const XML_Char *context,
8253 const XML_Char *base, const XML_Char *systemId,
8254 const XML_Char *publicId) {
8559 external_entity_alloc(XML_Parser parser, const XML_Char *context,
8560 const XML_Char *base, const XML_Char *systemId,
8561 const XML_Char *publicId) {
9553 const XML_Char *base =
9766 XML_Char ns_sep[2] = {' ', '\0'};
10093 const XML_Char *elemstr[] = {
10168 const XML_Char *elemstr[]