| 424 | #endif // !defined(OS_ANDROID) |
| 425 | |
| 426 | bool EqualsASCII(const string16& a, const butil::StringPiece& b) { |
| 427 | if (a.length() != b.length()) |
| 428 | return false; |
| 429 | return std::equal(b.begin(), b.end(), a.begin()); |
| 430 | } |
| 431 | |
| 432 | bool StartsWithASCII(const std::string& str, |
| 433 | const std::string& search, |