| 532 | } |
| 533 | |
| 534 | inline absl::optional<size_t> ByteString::Find(const ByteString& needle, |
| 535 | size_t pos) const { |
| 536 | return needle.Visit(absl::Overload( |
| 537 | [this, pos](absl::string_view rhs) -> absl::optional<size_t> { |
| 538 | return Find(rhs, pos); |
| 539 | }, |
| 540 | [this, pos](const absl::Cord& rhs) -> absl::optional<size_t> { |
| 541 | return Find(rhs, pos); |
| 542 | })); |
| 543 | } |
| 544 | |
| 545 | inline bool operator==(const ByteString& lhs, const ByteString& rhs) { |
| 546 | return lhs.Equals(rhs); |