Home
last modified time | relevance | path

Searched refs:result (Results 1 – 24 of 24) sorted by relevance

/string/
A Dtst-bswap.c26 int result = 0; in do_test() local
32 result = 1; in do_test()
37 result = 1; in do_test()
42 result = 1; in do_test()
49 result = 1; in do_test()
54 result = 1; in do_test()
59 result = 1; in do_test()
62 return result; in do_test()
A Dbug-strtok1.c12 int result = 0; in do_test() local
18 result |= token == NULL || strcmp (token, "x"); in do_test()
19 printf ("token: %s (%d)\n", token ? token : "NULL", result); in do_test()
21 result |= token != NULL; in do_test()
22 printf ("token: %s (%d)\n", token ? token : "NULL", result); in do_test()
24 result |= token != NULL; in do_test()
25 printf ("token: %s (%d)\n", token ? token : "NULL", result); in do_test()
32 result |= token == NULL || strcmp (token, "x"); in do_test()
35 result |= token != NULL || l != cp + len; in do_test()
38 result |= token != NULL || l != cp + len; in do_test()
[all …]
A Dtst-strxfrm.c19 int result = 0; in test() local
39 result = 1; in test()
50 result = 1; in test()
57 return result; in test()
64 int result = 0; in do_test() local
66 result |= test ("C"); in do_test()
67 result |= test ("en_US.ISO-8859-1"); in do_test()
68 result |= test ("de_DE.UTF-8"); in do_test()
70 return result; in do_test()
A Dtst-strtok.c9 int result = 0; in do_test() local
14 result = 1; in do_test()
19 result = 1; in do_test()
22 return result; in do_test()
A Dtst-endian.c24 int result = 0; in do_test() local
36 result = 1; in do_test()
42 result = 1; in do_test()
53 result = 1; in do_test()
59 result = 1; in do_test()
71 result = 1; in do_test()
104 result = 1; in do_test()
110 result = 1; in do_test()
121 result = 1; in do_test()
127 result = 1; in do_test()
[all …]
A Dstratcliff.c77 result = 1; in do_test()
115 result = 1; in do_test()
136 result = 1; in do_test()
153 result = 1; in do_test()
196 result = 1; in do_test()
358 result = 1; in do_test()
365 result = 1; in do_test()
401 result = 1; in do_test()
408 result = 1; in do_test()
546 result = 1; in do_test()
[all …]
A Dtest-memcmpeq.c19 #define BAD_RESULT(result, expec) ((!(result)) != (!(expec))) argument
A Dbug-envz1.c48 int result = 0; in do_test() local
61 result = 1; in do_test()
67 result = 1; in do_test()
72 return result; in do_test()
A Dtest-memrchr.c56 char *result; in do_test() local
74 result = (char *) (buf1 + align + pos); in do_test()
78 result = NULL; in do_test()
83 do_one_test (impl, (char *) (buf1 + align), seek_char, len, result); in do_test()
91 char *result; in do_random_tests() local
123 result = (char *) (p + pos + align); in do_random_tests()
125 result = NULL; in do_random_tests()
128 if (CALL (impl, (char *) (p + align), seek_char, len) != result) in do_random_tests()
133 result, p); in do_random_tests()
A Dtest-strcasecmp.c66 int result = CALL (impl, s1, s2); in do_one_test() local
67 if ((exp_result == 0 && result != 0) in do_one_test()
68 || (exp_result < 0 && result >= 0) in do_one_test()
72 result, exp_result); in do_one_test()
122 int result; in do_random_tests() local
171 result = 0; in do_random_tests()
184 result = -1; in do_random_tests()
186 result = 1; in do_random_tests()
197 if ((r == 0 && result) in do_random_tests()
198 || (r < 0 && result >= 0) in do_random_tests()
[all …]
A Dstrcasecmp.c53 int result; in __strcasecmp() local
58 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strcasecmp()
62 return result; in __strcasecmp()
A Dstrncase.c56 int result; in __strncasecmp() local
61 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strncasecmp()
65 return result; in __strncasecmp()
A Dtest-rawmemchr.c57 char *result; in do_test() local
75 result = (char *) (buf1 + align + pos); in do_test()
78 do_one_test (impl, (char *) (buf1 + align), seek_char, result); in do_test()
86 char *result; in do_random_tests() local
121 result = (char *) (p + pos + align); in do_random_tests()
124 if (CALL (impl, (char *) (p + align), seek_char) != result) in do_random_tests()
129 result, p); in do_random_tests()
A Dtest-strrchr.c82 CHAR *result; in do_test() local
104 result = (CHAR *) (buf + align + pos); in do_test()
107 result = (CHAR *) (buf + align + len); in do_test()
109 result = NULL; in do_test()
112 do_one_test (impl, (CHAR *) (buf + align), seek_char, result); in do_test()
120 CHAR *result; in do_random_tests() local
175 result = (CHAR *) (p + pos + align); in do_random_tests()
177 result = (CHAR *) (p + len + align); in do_random_tests()
179 result = NULL; in do_random_tests()
182 if (CALL (impl, (CHAR *) (p + align), seek_char) != result) in do_random_tests()
[all …]
A Dtest-strchr.c129 CHAR *result; in do_test() local
148 result = buf + align + pos; in do_test()
151 result = buf + align + len; in do_test()
153 result = NULLRET (buf + align + len); in do_test()
156 do_one_test (impl, buf + align, seek_char, result); in do_test()
164 CHAR *result; in do_random_tests() local
211 result = (CHAR *) (p + pos + align); in do_random_tests()
213 result = (CHAR *) (p + len + align); in do_random_tests()
215 result = NULLRET ((CHAR *) (p + len + align)); in do_random_tests()
218 if (CALL (impl, (CHAR *) (p + align), seek_char) != result) in do_random_tests()
[all …]
A Dtest-strncasecmp.c77 int result = CALL (impl, s1, s2, n); in check_result() local
78 if ((exp_result == 0 && result != 0) in check_result()
79 || (exp_result < 0 && result >= 0) in check_result()
83 result, exp_result); in check_result()
185 int result; in do_random_tests() local
234 result = 0; in do_random_tests()
247 result = -1; in do_random_tests()
249 result = 1; in do_random_tests()
261 if ((r == 0 && result) in do_random_tests()
262 || (r < 0 && result >= 0) in do_random_tests()
[all …]
A Dstrcoll_l.c217 int result = 0; in do_compare() local
222 result = val1 > val2 ? 1 : -1; in do_compare()
232 result = weights[idx1] - weights[idx2]; in do_compare()
246 result = seq1len - seq2len; in do_compare()
253 return result; in do_compare()
292 int result = 0, rule = 0; in STRCOLL() local
349 return result; in STRCOLL()
359 result = do_compare (&seq1, &seq2, position, weights); in STRCOLL()
360 if (result != 0) in STRCOLL()
361 return result; in STRCOLL()
[all …]
A Dtest-memchr.c78 CHAR *result; in do_test() local
97 result = (CHAR *) (buf + align + pos); in do_test()
101 result = NULL; in do_test()
106 do_one_test (impl, (CHAR *) (buf + align), seek_char, n, result); in do_test()
146 CHAR *result; in do_random_tests() local
182 result = (CHAR *) (p + pos + align); in do_random_tests()
185 result = NULL; in do_random_tests()
188 if (CALL (impl, (CHAR *) (p + align), seek_char, len) != result) in do_random_tests()
193 result, p); in do_random_tests()
A Dtest-memcmp.c81 # define BAD_RESULT(result, expec) \ argument
82 (((result) == 0 && (expec)) || ((result) < 0 && (expec) >= 0) || \
83 ((result) > 0 && (expec) <= 0))
95 int result = CALL (impl, s1, s2, len); in check_result() local
96 if (BAD_RESULT(result, exp_result)) in check_result()
99 result, exp_result); in check_result()
150 int result; in do_random_tests() local
178 result = 0; in do_random_tests()
192 result = -1; in do_random_tests()
194 result = 1; in do_random_tests()
[all …]
A Dtest-strcmp.c142 int result = CALL (impl, s1, s2); in check_result() local
143 if ((exp_result == 0 && result != 0) in check_result()
144 || (exp_result < 0 && result >= 0) in check_result()
145 || (exp_result > 0 && result <= 0)) in check_result()
148 result, exp_result); in check_result()
259 int result = 0; in do_random_tests() local
271 result = -1; in do_random_tests()
273 result = 1; in do_random_tests()
284 if ((r == 0 && result) in do_random_tests()
285 || (r < 0 && result >= 0) in do_random_tests()
[all …]
A Dtest-strncmp.c129 int result = CALL (impl, s1, s2, n); in check_result() local
130 if ((exp_result == 0 && result != 0) in check_result()
131 || (exp_result < 0 && result >= 0) in check_result()
135 result, exp_result); in check_result()
270 int result; in do_random_tests() local
320 result = 0; in do_random_tests()
334 result = -1; in do_random_tests()
336 result = 1; in do_random_tests()
348 if ((r == 0 && result) in do_random_tests()
349 || (r < 0 && result >= 0) in do_random_tests()
[all …]
A Dtest-strpbrk.c111 RES_TYPE result; in do_test() local
151 result = STRPBRK_RESULT (s, pos); in do_test()
154 do_one_test (impl, s, rej, result); in do_test()
161 RES_TYPE result; in do_random_tests() local
218 result = STRPBRK_RESULT ((CHAR *) (p + align), pos < len ? pos : len); in do_random_tests()
221 if (CALL (impl, (CHAR *) (p + align), (CHAR *) rej) != result) in do_random_tests()
226 (void *) result); in do_random_tests()
A Dtest-strcasestr.c65 char *result = CALL (impl, s1, s2); in check_result() local
66 if (result != exp_result) in check_result()
69 (result == NULL) ? "(null)" : result, in check_result()
A Dtest-strstr.c64 char *result = CALL (impl, s1, s2); in check_result() local
65 if (result != exp_result) in check_result()
68 (result == NULL) ? "(null)" : result, in check_result()

Completed in 35 milliseconds