llvm::StringRef::find_first_of

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

Synopsis

Declared in <llvm/ADT/StringRef.h>

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

Return Value

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

NOTE

The return value should not be discarded.

Parameters

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