llvm::StringRef::find_if_not

Search for the first character not satisfying the predicate F

Synopsis

Declared in <llvm/ADT/StringRef.h>

[[nodiscard]]
size_t
find_if_not(
    function_ref<bool(char)> F,
    size_t From = 0) const;

Return Value

The index of the first character not satisfying F starting from From, or npos if not found.

NOTE

The return value should not be discarded.

Parameters

NameDescription
FPredicate that characters must not satisfy.
FromIndex to start searching from.