| 17 | } |
| 18 | |
| 19 | bool CompareIgnoreCase(const std::string &lh, const std::string &rh) { |
| 20 | std::size_t llen = lh.size(); |
| 21 | std::size_t rlen = rh.size(); |
| 22 | int ret = __strncasecmp(lh.data(), rh.data(), static_cast<int>((std::min)(llen, rlen))); |
| 23 | return ret; |
| 24 | } |
| 25 | |
| 26 | bool CaseInsensitiveLess::operator()(const std::string &lhs, const std::string &rhs) const { |
| 27 | std::size_t llen = lhs.size(); |
no test coverage detected