Lines Matching refs:acc
54 SIMPLE_STRSPN (const CHAR *s, const CHAR *acc) in SIMPLE_STRSPN() argument
61 for (r = acc; *r != '\0'; ++r) in SIMPLE_STRSPN()
71 do_one_test (impl_t *impl, const CHAR *s, const CHAR *acc, size_t exp_res) in do_one_test() argument
73 size_t res = CALL (impl, s, acc); in do_one_test()
87 CHAR *acc, *s; in do_test() local
93 acc = (CHAR *) (buf2) + (random () & 255); in do_test()
98 acc[i] = random () & BIG_CHAR; in do_test()
99 if (!acc[i]) in do_test()
100 acc[i] = random () & BIG_CHAR; in do_test()
101 if (!acc[i]) in do_test()
102 acc[i] = 1 + (random () & SMALL_CHAR); in do_test()
104 acc[len] = '\0'; in do_test()
107 s[i] = acc[random () % len]; in do_test()
109 if (STRCHR (acc, s[pos])) in do_test()
119 do_one_test (impl, s, acc, pos); in do_test()
127 UCHAR *acc; in do_random_tests() local
145 acc = (UCHAR *) (buf2 + page_size) - alen - 1 - (random () & 7); in do_random_tests()
148 acc[i] = random () & BIG_CHAR; in do_random_tests()
149 if (!acc[i]) in do_random_tests()
150 acc[i] = random () & BIG_CHAR; in do_random_tests()
151 if (!acc[i]) in do_random_tests()
152 acc[i] = 1 + (random () & SMALL_CHAR); in do_random_tests()
154 acc[i] = '\0'; in do_random_tests()
166 if (STRCHR ((CHAR *) acc, p[i])) in do_random_tests()
172 p[i] = acc [random () % alen]; in do_random_tests()
177 (CHAR *) acc) != (pos < len ? pos : len)) in do_random_tests()
180 n, impl->name, align, acc, alen, pos, len, in do_random_tests()
181 CALL (impl, (CHAR *) (p + align), (CHAR *) acc), in do_random_tests()