absl::Cord::Find

Returns an iterator to the first occurrence of the substring needle.

Synopsis

Declared in <absl/strings/cord.h>

CharIterator
Find(std::string_view needle) const;

Description

If the substring needle does not occur, Cord::char_end() is returned.

Return Value

An iterator to the first occurrence, or char_end() if not found.

Parameters

NameDescription
needleThe substring to search for.