MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Find

Method Find

common/internal/byte_string.h:534–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534inline 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
545inline bool operator==(const ByteString& lhs, const ByteString& rhs) {
546 return lhs.Equals(rhs);

Callers 1

TEST_PFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by 1

TEST_PFunction · 0.36