Lines Matching +defs:cases +defs:c

9    Copyright (c) 2001-2006 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
10 Copyright (c) 2003 Greg Stein <gstein@users.sourceforge.net>
11 Copyright (c) 2005-2007 Steven Solie <steven@solie.ca>
12 Copyright (c) 2005-2012 Karl Waclawek <karl@waclawek.net>
13 Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
14 Copyright (c) 2017-2022 Rhodri James <rhodri@wildebeest.org.uk>
15 Copyright (c) 2017 Joe Orton <jorton@redhat.com>
16 Copyright (c) 2017 José Gutiérrez de la Concha <jose@zeroc.com>
17 Copyright (c) 2018 Marco Maggi <marco.maggi-ipsu@poste.it>
18 Copyright (c) 2019 David Loffredo <loffredo@steptools.com>
19 Copyright (c) 2020 Tim Gates <tim.gates@iress.com>
20 Copyright (c) 2021 Donghee Na <donghee.na@python.org>
21 Copyright (c) 2023-2024 Sony Corporation / Snild Dolkow <snild@sony.com>
303 "expected token error for '%c' (ordinal %d) in UTF-8 text", i,
327 struct TestCase cases[] = {
347 for (; i < sizeof(cases) / sizeof(*cases); i++) {
348 const char *fromLim = cases[i].input + strlen(cases[i].input);
352 _INTERNAL_trim_to_complete_utf8_characters(cases[i].input, &fromLim);
355 if (actualMovementInChars != cases[i].expectedMovementInChars) {
360 (unsigned)(i + 1), (int)cases[i].expectedMovementInChars,
362 for (; j < strlen(cases[i].input); j++) {
363 printf("\\x%02x", (unsigned char)cases[i].input[j]);
383 "\000n\000=\000'\0001\000.\000\060\000'\000 \000e\000n\000c\000o"
386 "\000<\000d\000o\000c\000 \000a\000=\000'\0001\0002\0003\000'\000>"
388 "<\000/\000d\000o\000c\000>";
641 " <c/>\r" /* Mac OS end-of-line */
649 {XCS("c"), 4, 3, STRUCT_START_TAG}, {XCS("c"), 8, 3, STRUCT_END_TAG},
712 characters long (defined to be 1024 in xmlparse.c). We take a
793 const char *text = "<a><b><c/></b><d><f/></d></a>";
794 const XML_Char *expected = XCS("/c/b/f/d/a");
902 "<doc attr=' a b c\t\td\te\t' refs=' id-1 \t id-2\t\t' \n"
1211 struct TestCase cases[] = {
1222 for (size_t i = 0; i < sizeof(cases) / sizeof(cases[0]); i++) {
1223 const char *const doc = cases[i].doc;
1224 const enum XML_Status expectedStatus = cases[i].expectedStatus;
1502 " \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0"
1529 " \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0"
1563 "\0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0\x31\0\x36\0'\0?\0>"
1638 " \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0"
1675 " \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0"
1697 struct CaseData cases[]
1724 for (; i < sizeof(cases) / sizeof(struct CaseData); i++) {
1725 set_subtest("%s", cases[i].text);
1727 g_parser, cases[i].text, (int)strlen(cases[i].text), XML_TRUE);
1732 if (actualError != cases[i].expectedError) {
1736 cases[i].expectedError, actualError, (unsigned int)i + 1,
1737 cases[i].text);
1756 " \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0"
1761 struct CaseData cases[] = {
1792 for (i = 0; i < sizeof(cases) / sizeof(struct CaseData); i++) {
1801 actual_status = _XML_Parse_SINGLE_BYTES(g_parser, cases[i].text,
1802 (int)cases[i].text_bytes, XML_TRUE);
1805 if (actual_error != cases[i].expected_error) {
1811 cases[i].expected_error,
1812 XML_ErrorString(cases[i].expected_error), actual_error,
2347 "<tag c='3'/>"
2353 AttrInfo tag_info[] = {{XCS("c"), XCS("3")}, {NULL, NULL}};
2636 const char text16[] = "\xFF\xFE<\000d\000o\000c\000>\000]\000";
3524 "<!ELEMENT doc (a|b|c)+>\n"
3527 "<!ELEMENT c ANY>\n"
3532 "<c></c>\n"
4049 "\0<\0!\0D\0O\0C\0T\0Y\0P\0E\0 \0d\0o\0c\0 \0[\0\n"
4058 "\0<\0d\0o\0c\0>\0&\0e\0n\0t\0i\0t\0y\0;\0<\0/\0d\0o\0c\0>";
4215 "\0<\0d\0o\0c\0/\0>";
4234 "<\0d\0o\0c\0/\0>\0";
4641 = {"a\0b\0c\0", 6, "Invalid character in entity not faulted", NULL,
4724 struct test_case cases[] = {
4771 for (; i < sizeof(cases) / sizeof(cases[0]); i++) {
4775 = atNameStart[j] ? cases[i].goodNameStart : cases[i].goodName;
4777 cases[i].tagName);
4797 (unsigned)strlen(cases[i].tagName), XML_GetErrorCode(parser));
4885 const char text[] = "\0<\0!\0D\0O\0C\0T\0Y\0P\0E\0 \0d\0o\0c\0 \0[\0\n"
4888 "\0d\0o\0c\0 \0(\0#\0P\0C\0D\0A\0T\0A\0)\0>\0'\0>\0\n"
4891 "\0<\0d\0o\0c\0>\0<\0/\0d\0o\0c\0>";
4976 "\0<\0!\0D\0O\0C\0T\0Y\0P\0E\0 \0d\0o\0c\0 \0[\0 "
4978 "\0 \0]\0>\0<\0d\0o\0c\0/\0>";
5319 {"<c attr='", "'></c>"}, // big attribute, used to be O(N²)
5435 for (int c = 0; c < 100; ++c) {
5454 for (int c = 0; c < 101; ++c) {
5527 for (int c = 0; c < 100; ++c) {
5546 for (int c = 0; c < 101; ++c) {