Lines Matching refs:s1
250 ZYAN_INLINE int ZYAN_MEMCMP(const void* s1, const void* s2, ZyanUSize n) in ZYAN_MEMCMP() argument
252 const ZyanU8* p1 = s1, *p2 = s2; in ZYAN_MEMCMP()
328 ZYAN_INLINE int ZYAN_STRCMP(const char* s1, const char* s2) in ZYAN_STRCMP() argument
330 while (*s1 && (*s1 == *s2)) in ZYAN_STRCMP()
332 s1++, s2++; in ZYAN_STRCMP()
334 return *(const ZyanU8*)s1 - *(const ZyanU8*)s2; in ZYAN_STRCMP()
337 ZYAN_INLINE int ZYAN_STRCOLL(const char *s1, const char *s2) in ZYAN_STRCOLL() argument
341 ZYAN_UNUSED(s1); in ZYAN_STRCOLL()
354 ZYAN_INLINE ZyanUSize ZYAN_STRCSPN(const char *s1, const char *s2) in ZYAN_STRCSPN() argument
357 while (*s1) in ZYAN_STRCSPN()
359 if (ZYAN_STRCHR(s2, *s1)) in ZYAN_STRCSPN()
363 s1++, ret++; in ZYAN_STRCSPN()
396 ZYAN_INLINE int ZYAN_STRNCMP(const char* s1, const char* s2, ZyanUSize n) in ZYAN_STRNCMP() argument
400 if (*s1++ != *s2++) in ZYAN_STRNCMP()
402 return *(unsigned char*)(s1 - 1) - *(unsigned char*)(s2 - 1); in ZYAN_STRNCMP()
425 ZYAN_INLINE char* ZYAN_STRPBRK(const char* s1, const char* s2) in ZYAN_STRPBRK() argument
427 while (*s1) in ZYAN_STRPBRK()
429 if(ZYAN_STRCHR(s2, *s1++)) in ZYAN_STRPBRK()
431 return (char*)--s1; in ZYAN_STRPBRK()
450 ZYAN_INLINE ZyanUSize ZYAN_STRSPN(const char* s1, const char* s2) in ZYAN_STRSPN() argument
453 while (*s1 && ZYAN_STRCHR(s2, *s1++)) in ZYAN_STRSPN()
460 ZYAN_INLINE char* ZYAN_STRSTR(const char* s1, const char* s2) in ZYAN_STRSTR() argument
463 while (*s1) in ZYAN_STRSTR()
465 if (!ZYAN_MEMCMP(s1++, s2, n)) in ZYAN_STRSTR()
467 return (char*)(s1 - 1); in ZYAN_STRSTR()