Home
last modified time | relevance | path

Searched refs:strcmp (Results 1 – 25 of 113) sorted by relevance

12345

/picolibc-latest/newlib/libc/ctype/
Dwctype.c80 if (!strcmp (c, "alnum")) in wctype()
82 else if (!strcmp (c, "alpha")) in wctype()
86 if (!strcmp (c, "blank")) in wctype()
90 if (!strcmp (c, "cntrl")) in wctype()
94 if (!strcmp (c, "digit")) in wctype()
98 if (!strcmp (c, "graph")) in wctype()
102 if (!strcmp (c, "lower")) in wctype()
106 if (!strcmp (c, "print")) in wctype()
108 else if (!strcmp (c, "punct")) in wctype()
112 if (!strcmp (c, "space")) in wctype()
[all …]
Djp2uc.c170 if (0 == strcmp (cs, "JIS")) in _jp2uc_l()
172 else if (0 == strcmp (cs, "SJIS")) in _jp2uc_l()
174 else if (0 == strcmp (cs, "EUCJP")) in _jp2uc_l()
191 if (0 == strcmp (cs, "JIS")) in _uc2jp_l()
193 else if (0 == strcmp (cs, "SJIS")) in _uc2jp_l()
195 else if (0 == strcmp (cs, "EUCJP")) in _uc2jp_l()
Dwctrans.c79 if (!strcmp (c, "tolower")) in wctrans()
81 else if (!strcmp (c, "toupper")) in wctrans()
/picolibc-latest/newlib/libc/machine/ft32/
Dstrcmp.S17 .global strcmp
18 .type strcmp,@function
19 strcmp: label
20 strcmp.b $r0,$r0,$r1
23 .size strcmp,.Lend2-strcmp
/picolibc-latest/newlib/libc/machine/nds32/
Dstrcmp.S48 .globl strcmp
49 .type strcmp, @function
50 strcmp: label
98 .size strcmp, .-strcmp
/picolibc-latest/newlib/libc/machine/arm/
Dstrcmp-arm-tiny.S37 def_fn strcmp
55 .size strcmp, . - strcmp
Dstrcmp-armv4t.S40 def_fn strcmp
56 .size strcmp, . - strcmp
/picolibc-latest/newlib/libm/test/
Dtest.c55 if (strcmp(av[i],"-v")==0) in main()
57 if (strcmp(av[i],"-nomath2") == 0) in main()
60 if (strcmp(av[i],"-nostrin") == 0) in main()
63 if (strcmp(av[i],"-nois") == 0) in main()
66 if (strcmp(av[i],"-nomath") == 0) in main()
69 if (strcmp(av[i],"-nocvt") == 0) in main()
72 if (strcmp(av[i],"-noiee") == 0) in main()
76 if (strcmp(av[i],"-generate") == 0) { in main()
107 if (strcmp(iname, string)) in newfunc()
111 if (memcheck && !strcmp(string, memcheck)) in newfunc()
[all …]
Dstring.c69 if (strcmp(a,b)) { in funcqual()
84 check(strcmp("", "") == 0); /* Trivial case. */ in test_string()
85 check(strcmp("a", "a") == 0); /* Identity. */ in test_string()
86 check(strcmp("abc", "abc") == 0); /* Multicharacter. */ in test_string()
87 check(strcmp("abc", "abcd") < 0); /* Length mismatches. */ in test_string()
88 check(strcmp("abcd", "abc") > 0); in test_string()
89 check(strcmp("abcd", "abce") < 0); /* Honest miscompares. */ in test_string()
90 check(strcmp("abce", "abcd") > 0); in test_string()
91 check(strcmp("a\103", "a") > 0); /* Tricky if char signed. */ in test_string()
92 check(strcmp("a\103", "a\003") > 0); in test_string()
/picolibc-latest/newlib/libc/machine/riscv/
Dstrcmp.S16 .section .text.strcmp
17 .globl strcmp
18 .type strcmp, @function
19 strcmp: label
33 .size strcmp, .-strcmp
/picolibc-latest/newlib/testsuite/newlib.search/
Dhsearchtest.c74 TEST(strcmp(ep->key, ch) == 0); in main()
86 TEST(strcmp(ep->key, ch) == 0); in main()
95 TEST(strcmp(ep->key, ch) == 0); in main()
109 TEST(strcmp(ep->key, "a") == 0 && (uintptr_t)ep->data == 0); in main()
111 TEST(strcmp(ep2->key, "b") == 0 && (uintptr_t)ep2->data == 1); in main()
/picolibc-latest/newlib/testsuite/newlib.string/
Dtstring.c112 if (strcmp (target, "A") || strlen(target) != 1 || memchr (target, 'A', 0) != NULL in main()
153 if (strcmp (target, "X") || strlen (target) != 1 || in main()
158 strcmp (tmp3, target) || in main()
176 if (memcmp (target, "YY", 2) || strcmp (target, "YY") || in main()
178 strcmp (tmp3, target) || in main()
189 if (memcmp (target, "WW", 2) || strcmp (target, "WW") || in main()
217 if (memcmp (target, "ZZZ", 3) || strcmp (target, "ZZZ") || in main()
218 strcmp (tmp3, target) || strcmp (tmp4, target) || in main()
229 if (memcmp (target, "ZZZ", 2) || strcmp (target, "ZZZ") >= 0 || in main()
240 if (memcmp (target, "AAA", 3) || strcmp (target, "AAA") || in main()
[all …]
Dstrcmp-1.c186 ret = strcmp (src + sa, dest + da); in main()
259 ret = strcmp (src, dest); in main()
265 ret = strcmp (src, dest); in main()
272 ret = strcmp (src, dest); in main()
278 ret = strcmp (src, dest); in main()
/picolibc-latest/test/
Dtest-strncat_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
118 TEST_RES(strcmp(dest, "Hello, world!") == 0, in main()
146 TEST_RES(strcmp(dest, "Hello") == 0, in main()
157 TEST_RES(strcmp(buf2, ", world!") == 0, in main()
168 TEST_RES(strcmp(dest, "Hello") == 0, in main()
Dtest-strcat_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, in main()
144 TEST_RES(strcmp(dest, "Hello") == 0, in main()
155 TEST_RES(strcmp(dest2, ", World!") == 0, in main()
Dtest-strcpy_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, "Normal Copy Contents", in main()
141 TEST_RES(strcmp(dest, "") == 0, "Copy of empty string Contents", in main()
150 TEST_RES(strcmp(buf2, "world") == 0, "Copy to empty buffer Contents", in main()
Dtest-strncpy_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, "Normal Copy Contents", in main()
141 TEST_RES(strcmp(dest, "") == 0, "Copy of empty string Contents", in main()
149 TEST_RES(strcmp(dest, "") == 0, "Copy with zero Characters Contents", in main()
Dtest-memset_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
116 TEST_RES(strcmp(buf, "AAAAAAAAAAAAA") == 0, "Normal Set Contents", in main()
124 TEST_RES(strcmp(buf, "AAAAAAAAAAAAA") == 0, "Zero-length Set Contents", in main()
Dtest-sprintf_s.c82 if (strcmp(expected_msg, handler_msg) != 0) { in test_handler_called()
117 TEST_RES(strcmp(buf, "Hello, world!") == 0, "Normal formatting Contents", in main()
147 TEST_RES(strcmp(buf, "") == 0, "Empty format string Contents", handler_res, in main()
Dtest-strtod.c151 if (strcmp(end, tests[i].end_test) != 0) { in main()
162 if (strcmp(end, tests[i].end_test) != 0) { in main()
185 if (strcmp(end, tests[i].end_test) != 0) { in main()
/picolibc-latest/newlib/libc/locale/
Dnewlocale.c126 && (!strcmp (locale, "C") || !strcmp (locale, "POSIX")))) in newlocale()
164 || !strcmp (base->categories[i], new_categories[i]))) in newlocale()
191 if (!strcmp (new_categories[i], "C") in newlocale()
192 || !strcmp (new_categories[i], "POSIX")) in newlocale()
Dlocale.c274 if (strcmp (locale, "POSIX") && strcmp (locale, "C") in setlocale()
275 && strcmp (locale, "")) in setlocale()
441 if (strcmp (__get_global_locale ()->categories[1], in currentlocale()
482 if (!strcmp (new_locale, loc->categories[category])) in __loadlocale()
489 if (!strcmp (locale, "POSIX")) in __loadlocale()
491 if (!strcmp (locale, "C")) /* Default "C" locale */ in __loadlocale()
557 if (!strcmp (c + 1, "cjksingle")) in __loadlocale()
559 else if (!strcmp (c + 1, "cjknarrow")) in __loadlocale()
561 else if (!strcmp (c + 1, "cjkwide")) in __loadlocale()
784 if (strcmp (c, "620")) in __loadlocale()
/picolibc-latest/test/libc-testsuite/
Dbasename.c33 if (strcmp((b),s)) { \
46 if (strcmp(basename(NULL), ".")) { in test_basename()
Ddirname.c33 if (strcmp((b),s)) { \
46 if (strcmp(dirname(NULL), ".")) { in test_dirname()
/picolibc-latest/newlib/libc/iconv/ces/
Dutf-16.c76 if (strcmp (encoding, UTF_16LE) == 0) in utf_16_init_from_ucs()
78 else if (strcmp (encoding, UTF_16BE) == 0) in utf_16_init_from_ucs()
176 if (strcmp (encoding, UTF_16BE) == 0) in utf_16_init_to_ucs()
178 else if (strcmp (encoding, UTF_16LE) == 0) in utf_16_init_to_ucs()

12345