Ark Server API (ASA) - Wiki
|
#include <ExpressionParserTypes.h>
Private Attributes | |
const TCHAR * | Start |
const TCHAR * | End |
const TCHAR * | ReadPos |
A token stream wraps up a raw string, providing accessors into it for consuming tokens
Definition at line 89 of file ExpressionParserTypes.h.
FTokenStream::FTokenStream | ( | const TCHAR * | In | ) |
Constructor. The stream is only valid for the lifetime of the string provided
int32 FTokenStream::CharsRemaining | ( | ) | const |
Get the number of characters remaining in the stream after the current read position
TOptional< FStringToken > FTokenStream::GenerateToken | ( | int32 | NumChars, |
FStringToken * | Accumulate = nullptr ) const |
Generate a token for the specified number of chars, at the current read position (or end of Accumulate)
|
inline |
Definition at line 139 of file ExpressionParserTypes.h.
FString FTokenStream::GetErrorContext | ( | ) | const |
Get the error context from the current read position
int32 FTokenStream::GetPosition | ( | ) | const |
Get the current read position from the start of the stream
|
inline |
Definition at line 138 of file ExpressionParserTypes.h.
|
inline |
Definition at line 137 of file ExpressionParserTypes.h.
bool FTokenStream::IsEmpty | ( | ) | const |
Check if the stream is empty
Check if it is valid to read (the optional number of characters) from the specified position
TOptional< FStringToken > FTokenStream::ParseSymbol | ( | FStringToken * | Accumulate = nullptr | ) | const |
Return a string token for the next character in the stream (or accumulating into the specified existing token)
TOptional< FStringToken > FTokenStream::ParseSymbol | ( | TCHAR | Symbol, |
FStringToken * | Accumulate = nullptr ) const |
Attempt parse out the specified pre-defined string from the current read position (or accumulating into the specified existing token)
TOptional< FStringToken > FTokenStream::ParseToken | ( | const TCHAR * | Symbol, |
FStringToken * | Accumulate = nullptr ) const |
Attempt parse out the specified pre-defined string from the current read position (or accumulating into the specified existing token)
TOptional< FStringToken > FTokenStream::ParseToken | ( | TFunctionRef< EParseState(TCHAR)> | Pred, |
FStringToken * | Accumulate = nullptr ) const |
Parse out a token using the supplied predicate. Will keep consuming characters into the resulting token provided the predicate returns EParseState::Continue or EParseState::StopAfter. Optionally supply a token to accumulate into Returns a string token for the stream, or empty on error
TOptional< FStringToken > FTokenStream::ParseTokenIgnoreCase | ( | const TCHAR * | Symbol, |
FStringToken * | Accumulate = nullptr ) const |
TOptional< FStringToken > FTokenStream::ParseWhitespace | ( | FStringToken * | Accumulate = nullptr | ) | const |
Parse a whitespace token
TCHAR FTokenStream::PeekChar | ( | int32 | Offset = 0 | ) | const |
Peek at the character at the specified offset from the current read position
void FTokenStream::SetReadPos | ( | const FStringToken & | Token | ) |
Set the current read position to the character proceeding the specified token
|
private |
The end of the expression
Definition at line 152 of file ExpressionParserTypes.h.
|
private |
The current read position in the expression
Definition at line 154 of file ExpressionParserTypes.h.
|
private |
The start of the expression
Definition at line 150 of file ExpressionParserTypes.h.