Case-unsensitive strings equality-comparision
| 60 | |
| 61 | // Case-unsensitive strings equality-comparision |
| 62 | static bool StringEquals( const char* const s0, const char* const s1 ) |
| 63 | { |
| 64 | unsigned int i= 0; |
| 65 | while( s0[i] != '\0' && s1[i] != '\0' ) |
| 66 | { |
| 67 | if( std::tolower( s0[i] ) != std::tolower( s1[i] ) ) |
| 68 | return false; |
| 69 | i++; |
| 70 | } |
| 71 | |
| 72 | return std::tolower( s0[i] ) == std::tolower( s1[i] ); |
| 73 | } |
| 74 | |
| 75 | // Case-unsensitive substring search |
| 76 | static const char* GetSubstring( const char* const search_where, const char* const search_what ) |
no outgoing calls
no test coverage detected