18 #ifndef _GLIBCXX_CSTDDEF
21 #ifndef _GLIBCXX_CCTYPE
24 #ifndef _GLIBCXX_CSTRING
34 if (!s1[idx])
return s2[idx] ? -1 : 0;
35 if (!s2[idx])
return 1;
36 cmp = tolower(s1[idx]) - tolower(s2[idx]);
46 for (
size_t idx = 0; with[idx]; ++idx) {
47 if (str[idx] != with[idx])
return false;
58 ? (s2 ? strcmp(s1, s2) : -1)
63 inline char *
ARB_strupper(
char *
s) {
for (
int i = 0; s[i]; ++i) s[i] = toupper(s[i]);
return s; }
64 inline char *
ARB_strlower(
char *
s) {
for (
int i = 0; s[i]; ++i) s[i] = tolower(s[i]);
return s; }
67 #error arb_str.h included twice
int ARB_stricmp(const char *s1, const char *s2)
int ARB_strNULLcmp(const char *s1, const char *s2)
char * ARB_strlower(char *s)
char * ARB_strupper(char *s)
bool ARB_strBeginsWith(const char *str, const char *with)
GB_write_int const char s