| 538 | }; |
| 539 | |
| 540 | bool operator==(const MyStringView& x, const std::string& y) { |
| 541 | if (x.size() != y.size()) { |
| 542 | return false; |
| 543 | } |
| 544 | |
| 545 | return butil::StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0; |
| 546 | } |
| 547 | |
| 548 | bool operator==(const std::string& x, const MyStringView& y) { |
| 549 | if (x.size() != y.size()) { |