llvm::StringRef::find_first_not_of

find_first_not_of overloads

Synopses

Declared in <llvm/ADT/StringRef.h>

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

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

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

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

Return Value

Index of the first non-matching character, or npos if not found.

NOTE

The return value should not be discarded.

Parameters

NameDescription
CharsCharacters that are excluded from the match.
FromIndex to start searching from.
CCharacter that is excluded from the match.