Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/ExpressionParserTypes.h |
| Include | #include "Misc/ExpressionParserTypes.h" |
Syntax
class FTokenStream
Remarks
A token stream wraps up a raw string, providing accessors into it for consuming tokens
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTokenStream
(
const TCHAR* In |
Constructor. The stream is only valid for the lifetime of the string provided |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Get the number of characters remaining in the stream after the current read position | ||
| TOptional< FStringToken > | GenerateToken
(
int32 NumChars, |
Generate a token for the specified number of chars, at the current read position (or end of Accumulate) | |
| const TCHAR * | GetEnd () |
||
| FString | Get the error context from the current read position | ||
| int32 | GetPosition () |
Get the current read position from the start of the stream | |
| const TCHAR * | GetRead () |
||
| const TCHAR * | GetStart () |
||
| bool | IsEmpty () |
Check if the stream is empty | |
| bool | IsReadPosValid
(
const TCHAR* InPos, |
Check if it is valid to read (the optional number of characters) from the specified position | |
| TOptional< FStringToken > | ParseSymbol
(
FStringToken* Accumulate |
Return a string token for the next character in the stream (or accumulating into the specified existing token) | |
| TOptional< FStringToken > | ParseSymbol
(
TCHAR Symbol, |
Attempt parse out the specified pre-defined string from the current read position (or accumulating into the specified existing token) | |
| TOptional< FStringToken > | ParseToken
(
TFunctionRef< EParseState(TCHAR)> Pred, |
Parse out a token using the supplied predicate. | |
| TOptional< FStringToken > | ParseToken
(
const TCHAR* Symbol, |
Attempt parse out the specified pre-defined string from the current read position (or accumulating into the specified existing token) | |
| TOptional< FStringToken > | ParseTokenIgnoreCase
(
const TCHAR* Symbol, |
||
| TOptional< FStringToken > | ParseWhitespace
(
FStringToken* Accumulate |
Parse a whitespace token | |
| TCHAR | Peek at the character at the specified offset from the current read position | ||
| void | SetReadPos
(
const FStringToken& Token |
Set the current read position to the character proceeding the specified token |