llvm::StringRef::drop_while

Return a StringRef equal to 'this', but with all characters satisfying the given predicate dropped from the beginning of the string.

Synopsis

Declared in <llvm/ADT/StringRef.h>

[[nodiscard]]
StringRef
drop_while(function_ref<bool(char)> F) const;

Return Value

StringRef with leading characters satisfying F removed.

NOTE

The return value should not be discarded.

Parameters

NameDescription
FPredicate that identifies characters to drop from the front.