llvm::StringRef::find_first_of

find_first_of overloads

Synopses

Declared in <llvm/ADT/StringRef.h>

Find the first character in the string that is in Chars, or npos if not found.

[[nodiscard]]
size_t
find_first_of(
    StringRef Chars,
    size_t From = 0) const;
» more...

Find the first character in the string that is C, or npos if not found. Same as find.

[[nodiscard]]
size_t
find_first_of(
    char C,
    size_t From = 0) const;
» more...

Return Value

Index of the first match, or npos if not found.

NOTE

The return value should not be discarded.

Parameters

NameDescription
CharsCharacters to search for.
FromIndex to start searching from.
CCharacter to search for.