Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more.
| 1725 | |
| 1726 | // Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. |
| 1727 | int ImStricmp(const char* str1, const char* str2) |
| 1728 | { |
| 1729 | int d; |
| 1730 | while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } |
| 1731 | return d; |
| 1732 | } |
| 1733 | |
| 1734 | int ImStrnicmp(const char* str1, const char* str2, size_t count) |
| 1735 | { |
nothing calls this directly
no test coverage detected