• Home
  • Raw
  • Download

Lines Matching refs:s1

16 static inline int HF_strcmp(const char* s1, const char* s2, uintptr_t addr) {  in HF_strcmp()  argument
18 for (i = 0; s1[i] == s2[i]; i++) { in HF_strcmp()
19 if (s1[i] == '\0' || s2[i] == '\0') { in HF_strcmp()
24 return ((unsigned char)s1[i] - (unsigned char)s2[i]); in HF_strcmp()
27 static inline int HF_strcasecmp(const char* s1, const char* s2, uintptr_t addr) { in HF_strcasecmp() argument
29 for (i = 0; tolower((unsigned char)s1[i]) == tolower((unsigned char)s2[i]); i++) { in HF_strcasecmp()
30 if (s1[i] == '\0' || s2[i] == '\0') { in HF_strcasecmp()
35 return (tolower((unsigned char)s1[i]) - tolower((unsigned char)s2[i])); in HF_strcasecmp()
38 static inline int HF_strncmp(const char* s1, const char* s2, size_t n, uintptr_t addr) { in HF_strncmp() argument
41 if ((s1[i] != s2[i]) || s1[i] == '\0' || s2[i] == '\0') { in HF_strncmp()
50 return (unsigned char)s1[i] - (unsigned char)s2[i]; in HF_strncmp()
53 static inline int HF_strncasecmp(const char* s1, const char* s2, size_t n, uintptr_t addr) { in HF_strncasecmp() argument
56 if ((tolower((unsigned char)s1[i]) != tolower((unsigned char)s2[i])) || s1[i] == '\0' || in HF_strncasecmp()
66 return tolower((unsigned char)s1[i]) - tolower((unsigned char)s2[i]); in HF_strncasecmp()
95 const unsigned char* s1 = (const unsigned char*)m1; in HF_memcmp() local
100 if (s1[i] != s2[i]) { in HF_memcmp()
109 return ((unsigned char)s1[i] - (unsigned char)s2[i]); in HF_memcmp()
143 HF_WEAK_WRAP(int, strcmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
144 return HF_strcmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
146 HF_WEAK_WRAP(int, strcasecmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
147 return HF_strcasecmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
149 HF_WEAK_WRAP(int, strncmp, const char* s1, const char* s2, size_t n) { in HF_WEAK_WRAP() argument
150 return HF_strncmp(s1, s2, n, RET_CALL_CHAIN); in HF_WEAK_WRAP()
152 HF_WEAK_WRAP(int, strncasecmp, const char* s1, const char* s2, size_t n) { in HF_WEAK_WRAP() argument
153 return HF_strncasecmp(s1, s2, n, RET_CALL_CHAIN); in HF_WEAK_WRAP()
178 HF_WEAK_WRAP(int, ap_cstr_casecmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
179 return HF_strcasecmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
182 HF_WEAK_WRAP(int, ap_cstr_casecmpn, const char* s1, const char* s2, size_t n) { in HF_WEAK_WRAP() argument
183 return HF_strncasecmp(s1, s2, n, RET_CALL_CHAIN); in HF_WEAK_WRAP()
186 HF_WEAK_WRAP(const char*, ap_strcasestr, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
187 return HF_strcasestr(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
190 HF_WEAK_WRAP(int, apr_cstr_casecmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
191 return HF_strcasecmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
194 HF_WEAK_WRAP(int, apr_cstr_casecmpn, const char* s1, const char* s2, size_t n) { in HF_WEAK_WRAP() argument
195 return HF_strncasecmp(s1, s2, n, RET_CALL_CHAIN); in HF_WEAK_WRAP()
209 HF_WEAK_WRAP(int, OPENSSL_strcasecmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
210 return HF_strcasecmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
213 HF_WEAK_WRAP(int, OPENSSL_strncasecmp, const char* s1, const char* s2, size_t len) { in HF_WEAK_WRAP() argument
214 return HF_strncasecmp(s1, s2, len, RET_CALL_CHAIN); in HF_WEAK_WRAP()
217 HF_WEAK_WRAP(int32_t, memcmpct, const void* s1, const void* s2, size_t len) { in HF_WEAK_WRAP() argument
218 return HF_memcmp(s1, s2, len, RET_CALL_CHAIN); in HF_WEAK_WRAP()
224 HF_WEAK_WRAP(int, xmlStrncmp, const char* s1, const char* s2, int len) { in HF_WEAK_WRAP() argument
228 if (s1 == s2) { in HF_WEAK_WRAP()
231 if (s1 == NULL) { in HF_WEAK_WRAP()
237 return HF_strncmp(s1, s2, (size_t)len, RET_CALL_CHAIN); in HF_WEAK_WRAP()
240 HF_WEAK_WRAP(int, xmlStrcmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
241 if (s1 == s2) { in HF_WEAK_WRAP()
244 if (s1 == NULL) { in HF_WEAK_WRAP()
250 return HF_strcmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
253 HF_WEAK_WRAP(int, xmlStrEqual, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
254 if (s1 == s2) { in HF_WEAK_WRAP()
257 if (s1 == NULL) { in HF_WEAK_WRAP()
263 if (HF_strcmp(s1, s2, RET_CALL_CHAIN) == 0) { in HF_WEAK_WRAP()
269 HF_WEAK_WRAP(int, xmlStrcasecmp, const char* s1, const char* s2) { in HF_WEAK_WRAP() argument
270 if (s1 == s2) { in HF_WEAK_WRAP()
273 if (s1 == NULL) { in HF_WEAK_WRAP()
279 return HF_strcasecmp(s1, s2, RET_CALL_CHAIN); in HF_WEAK_WRAP()
282 HF_WEAK_WRAP(int, xmlStrncasecmp, const char* s1, const char* s2, int len) { in HF_WEAK_WRAP() argument
286 if (s1 == s2) { in HF_WEAK_WRAP()
289 if (s1 == NULL) { in HF_WEAK_WRAP()
295 return HF_strncasecmp(s1, s2, (size_t)len, RET_CALL_CHAIN); in HF_WEAK_WRAP()
321 HF_WEAK_WRAP(int, memcmp_const_time, const void* s1, const void* s2, size_t n) { in HF_WEAK_WRAP() argument
322 return HF_memcmp(s1, s2, n, RET_CALL_CHAIN); in HF_WEAK_WRAP()
325 HF_WEAK_WRAP(bool, strcsequal, const void* s1, const void* s2) { in HF_WEAK_WRAP() argument
326 if (s1 == s2) { in HF_WEAK_WRAP()
329 if (!s1 || !s2) { in HF_WEAK_WRAP()
332 return (HF_strcmp(s1, s2, RET_CALL_CHAIN) == 0); in HF_WEAK_WRAP()