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

Name

Description

needle

The substring to search for.

Created with MrDocs