ΒΆstd::pair<StringRef, StringRef> getToken(
    llvm::StringRef Source,
    llvm::StringRef Delimiters = " \t\n\v\f\r")

Description

getToken - This function extracts one token from source, ignoring any leading characters that appear in the Delimiters string, and ending the token at any of the characters that appear in the Delimiters string. If there are no tokens in the source string, an empty string is returned. The function returns a pair containing the extracted token and the remaining tail string.

Declared at: llvm/include/llvm/ADT/StringExtras.h:340

Parameters

llvm::StringRef Source
llvm::StringRef Delimiters = " \t\n\v\f\r"