| 377 | |
| 378 | template<typename Iter> |
| 379 | static inline bool DoLowerCaseEqualsASCII(Iter a_begin, |
| 380 | Iter a_end, |
| 381 | const char* b) { |
| 382 | for (Iter it = a_begin; it != a_end; ++it, ++b) { |
| 383 | if (!*b || butil::ToLowerASCII(*it) != *b) |
| 384 | return false; |
| 385 | } |
| 386 | return *b == 0; |
| 387 | } |
| 388 | |
| 389 | // Front-ends for LowerCaseEqualsASCII. |
| 390 | bool LowerCaseEqualsASCII(const std::string& a, const char* b) { |
no test coverage detected