Lines Matching refs:s2
34 simple_strcasecmp (const char *s1, const char *s2) in simple_strcasecmp() argument
39 - (unsigned char) tolower (*s2))) == 0 in simple_strcasecmp()
41 ++s2; in simple_strcasecmp()
46 stupid_strcasecmp (const char *s1, const char *s2) in stupid_strcasecmp() argument
48 size_t ns1 = strlen (s1) + 1, ns2 = strlen (s2) + 1; in stupid_strcasecmp()
55 - (unsigned char) tolower (*s2))) != 0) in stupid_strcasecmp()
58 ++s2; in stupid_strcasecmp()
64 do_one_test (impl_t *impl, const char *s1, const char *s2, int exp_result) in do_one_test() argument
66 int result = CALL (impl, s1, s2); in do_one_test()
83 char *s1, *s2; in do_test() local
97 s2 = (char *) (buf2 + align2); in do_test()
102 s2[i] = tolower (s1[i]); in do_test()
105 s1[len] = s2[len] = 0; in do_test()
107 s2[len + 1] = 24 + exp_result; in do_test()
108 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test()
109 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test()
112 s2[len - 1] -= exp_result; in do_test()
115 do_one_test (impl, s1, s2, exp_result); in do_test()