LLVM 22.0.0git
|
Public Types | |
enum class | Type { Text , Variable , Partial , SectionOpen , SectionClose , InvertSectionOpen , UnescapeVariable , Comment , SetDelimiter } |
Public Member Functions | |
Token (std::string Str) | |
Token (std::string RawBody, std::string TokenBody, char Identifier) | |
Accessor | getAccessor () const |
Type | getType () const |
void | setIndentation (size_t NewIndentation) |
size_t | getIndentation () const |
Static Public Member Functions | |
static Type | getTokenType (char Identifier) |
Public Attributes | |
Type | TokenType |
std::string | RawBody |
std::string | TokenBody |
Accessor | AccessorValue |
size_t | Indentation |
Definition at line 86 of file Mustache.cpp.
|
strong |
Enumerator | |
---|---|
Text | |
Variable | |
Partial | |
SectionOpen | |
SectionClose | |
InvertSectionOpen | |
UnescapeVariable | |
Comment | |
SetDelimiter |
Definition at line 88 of file Mustache.cpp.
|
inline |
Definition at line 100 of file Mustache.cpp.
References AccessorValue, llvm::move(), RawBody, Text, TokenBody, and TokenType.
|
inline |
Definition at line 104 of file Mustache.cpp.
References AccessorValue, Comment, getTokenType(), Indentation, llvm::move(), RawBody, llvm::StringRef::substr(), TokenBody, TokenType, and Variable.
|
inline |
Definition at line 116 of file Mustache.cpp.
References AccessorValue.
|
inline |
Definition at line 122 of file Mustache.cpp.
References Indentation.
Definition at line 124 of file Mustache.cpp.
References Comment, InvertSectionOpen, Partial, SectionClose, SectionOpen, SetDelimiter, UnescapeVariable, and Variable.
Referenced by Token().
|
inline |
Definition at line 118 of file Mustache.cpp.
References TokenType.
Referenced by llvm::mustache::tokenize().
|
inline |
Definition at line 120 of file Mustache.cpp.
References Indentation.
Referenced by llvm::mustache::stripTokenBefore().
Accessor llvm::mustache::Token::AccessorValue |
Definition at line 150 of file Mustache.cpp.
Referenced by getAccessor(), Token(), and Token().
size_t llvm::mustache::Token::Indentation |
Definition at line 151 of file Mustache.cpp.
Referenced by getIndentation(), setIndentation(), and Token().
std::string llvm::mustache::Token::RawBody |
Definition at line 147 of file Mustache.cpp.
Referenced by llvm::mustache::hasTextAhead(), llvm::mustache::hasTextBehind(), Token(), and Token().
std::string llvm::mustache::Token::TokenBody |
Definition at line 149 of file Mustache.cpp.
Referenced by llvm::mustache::stripTokenAhead(), llvm::mustache::stripTokenBefore(), Token(), and Token().
Type llvm::mustache::Token::TokenType |
Definition at line 145 of file Mustache.cpp.