* @brief Case-insensitive string comparison. * * Behaves like the standard strcmp() but ignores case. * * @return A negative integer if lhs is lexicographically less than rhs (ignoring case), 0 if both * are equal, or a positive integer if lhs is greater than rhs. */
| 17 | * are equal, or a positive integer if lhs is greater than rhs. |
| 18 | */ |
| 19 | inline int icmp(const char* lhs, const char* rhs) |
| 20 | { |
| 21 | #ifdef WIN32 |
| 22 | return _stricmp(lhs, rhs); |
| 23 | #else |
| 24 | return strcasecmp(lhs, rhs); |
| 25 | #endif |
| 26 | } |
| 27 | |
| 28 | /// Case-insensitive comparison functor for use with data structures |
| 29 | struct ILess |
no outgoing calls
no test coverage detected