| 25 | |
| 26 | |
| 27 | int caseInsensitiveStringCompare(const std::string &lhs, const std::string &rhs) |
| 28 | { |
| 29 | if (lhs.size() != rhs.size()) |
| 30 | return (lhs.size() < rhs.size()) ? -1 : 1; |
| 31 | for (unsigned int i = 0; i < lhs.size(); ++i) { |
| 32 | const int c1 = std::toupper(lhs[i]); |
| 33 | const int c2 = std::toupper(rhs[i]); |
| 34 | if (c1 != c2) |
| 35 | return (c1 < c2) ? -1 : 1; |
| 36 | } |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | bool isValidGlobPattern(const std::string& pattern) |
| 41 | { |
no test coverage detected