16 int stricmp(
const char* first,
const char* second)
19 return _stricmp(first, second);
22 if (first !=
nullptr && second !=
nullptr)
25 while (*first !=
'\0' && *second !=
'\0')
27 char first_c = toupper(*first);
28 char second_c = toupper(*second);
29 if (first_c < second_c)
34 if (first_c > second_c)
42 if (result == 0 && *first != *second)
59 int stricmp(
const std::string& first,
const std::string& second)
61 return stricmp(first.c_str(), second.c_str());
The namespace containing all the "helper" functions in the C++ code.
int stricmp(const char *first, const char *second)
Compare two strings in a case-insensitive manner to determine their alphabetical order relative to ea...
Declaration of the stricmp function, case-insensitive string comparison for narrow character strings.