| 24 | } |
| 25 | |
| 26 | bool CaseInsensitiveLess::operator()(const std::string &lhs, const std::string &rhs) const { |
| 27 | std::size_t llen = lhs.size(); |
| 28 | std::size_t rlen = rhs.size(); |
| 29 | |
| 30 | int ret = CompareIgnoreCase(lhs, rhs); |
| 31 | |
| 32 | if (ret < 0) { |
| 33 | return true; |
| 34 | } |
| 35 | if (ret == 0 && llen < rlen) { |
| 36 | return true; |
| 37 | } |
| 38 | return false; |
| 39 | } |
| 40 | |
| 41 | bool EndWith(const std::string &source, const std::string &end) { |
| 42 | auto endSize = end.size(); |
nothing calls this directly
no test coverage detected