Lines Matching refs:acc
59 SIMPLE_STRSPN (const CHAR *s, const CHAR *acc) in SIMPLE_STRSPN() argument
66 for (r = acc; *r != '\0'; ++r) in SIMPLE_STRSPN()
76 STUPID_STRSPN (const CHAR *s, const CHAR *acc) in STUPID_STRSPN() argument
78 size_t ns = STRLEN (s), nacc = STRLEN (acc); in STUPID_STRSPN()
84 if (s[i] == acc[j]) in STUPID_STRSPN()
93 do_one_test (impl_t *impl, const CHAR *s, const CHAR *acc, size_t exp_res) in do_one_test() argument
95 size_t res = CALL (impl, s, acc); in do_one_test()
109 CHAR *acc, *s; in do_test() local
115 acc = (CHAR *) (buf2) + (random () & 255); in do_test()
120 acc[i] = random () & BIG_CHAR; in do_test()
121 if (!acc[i]) in do_test()
122 acc[i] = random () & BIG_CHAR; in do_test()
123 if (!acc[i]) in do_test()
124 acc[i] = 1 + (random () & SMALL_CHAR); in do_test()
126 acc[len] = '\0'; in do_test()
129 s[i] = acc[random () % len]; in do_test()
131 if (STRCHR (acc, s[pos])) in do_test()
141 do_one_test (impl, s, acc, pos); in do_test()
149 UCHAR *acc; in do_random_tests() local
167 acc = (UCHAR *) (buf2 + page_size) - alen - 1 - (random () & 7); in do_random_tests()
170 acc[i] = random () & BIG_CHAR; in do_random_tests()
171 if (!acc[i]) in do_random_tests()
172 acc[i] = random () & BIG_CHAR; in do_random_tests()
173 if (!acc[i]) in do_random_tests()
174 acc[i] = 1 + (random () & SMALL_CHAR); in do_random_tests()
176 acc[i] = '\0'; in do_random_tests()
188 if (STRCHR ((CHAR *) acc, p[i])) in do_random_tests()
194 p[i] = acc [random () % alen]; in do_random_tests()
199 (CHAR *) acc) != (pos < len ? pos : len)) in do_random_tests()
202 n, impl->name, align, acc, alen, pos, len, in do_random_tests()
203 CALL (impl, (CHAR *) (p + align), (CHAR *) acc), in do_random_tests()