absl::Cord::Find

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

Synopsis

Declared in <absl/strings/cord.h>

CharIterator
Find(absl::Cord const& needle) const;

Description

If 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 Cord to search for.