Lines Matching refs:s
59 SIMPLE_STRSPN (const CHAR *s, const CHAR *acc) in SIMPLE_STRSPN() argument
61 const CHAR *r, *str = s; in SIMPLE_STRSPN()
64 while ((c = *s++) != '\0') in SIMPLE_STRSPN()
70 return s - str - 1; in SIMPLE_STRSPN()
72 return s - str - 1; 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
116 s = (CHAR *) (buf1) + align; in do_test()
129 s[i] = acc[random () % len]; in do_test()
130 s[pos] = random () & BIG_CHAR; in do_test()
131 if (STRCHR (acc, s[pos])) in do_test()
132 s[pos] = '\0'; in do_test()
136 s[i] = random () & BIG_CHAR; in do_test()
137 s[i] = '\0'; in do_test()
141 do_one_test (impl, s, acc, pos); in do_test()