llvm::StringRef::drop_front

Return a StringRef equal to 'this' but with the first N elements dropped.

Synopsis

Declared in <llvm/ADT/StringRef.h>

[[nodiscard]]
StringRef
drop_front(size_t N = 1) const;

Return Value

StringRef with the first N characters removed.

NOTE

The return value should not be discarded.

Parameters

NameDescription
NNumber of characters to drop from the front.