Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FStringToken Class Reference

#include <ExpressionParserTypes.h>

+ Collaboration diagram for FStringToken:

Public Member Functions

 FStringToken ()
 
FString GetString () const
 
bool IsValid () const
 
const TCHAR * GetTokenStartPos () const
 
const TCHAR * GetTokenEndPos () const
 
int32 GetCharacterIndex () const
 
int32 GetLineNumber () const
 
void Accumulate (const FStringToken &InToken)
 

Protected Member Functions

 FStringToken (const TCHAR *InStart, int32 Line=0, int32 Character=0)
 

Protected Attributes

const TCHAR * TokenStart
 
const TCHAR * TokenEnd
 
int32 LineNumber
 
int32 CharacterIndex
 

Friends

class FTokenStream
 

Detailed Description

Simple struct that defines a specific token contained in an FTokenStream

Definition at line 38 of file ExpressionParserTypes.h.

Constructor & Destructor Documentation

◆ FStringToken() [1/2]

FStringToken::FStringToken ( )
inline

Definition at line 41 of file ExpressionParserTypes.h.

◆ FStringToken() [2/2]

FStringToken::FStringToken ( const TCHAR * InStart,
int32 Line = 0,
int32 Character = 0 )
inlineprotected

Definition at line 63 of file ExpressionParserTypes.h.

Member Function Documentation

◆ Accumulate()

void FStringToken::Accumulate ( const FStringToken & InToken)
inline

Accumulate another token into this one

Definition at line 58 of file ExpressionParserTypes.h.

◆ GetCharacterIndex()

int32 FStringToken::GetCharacterIndex ( ) const
inline

Contextual information about this token

Definition at line 54 of file ExpressionParserTypes.h.

◆ GetLineNumber()

int32 FStringToken::GetLineNumber ( ) const
inline

Definition at line 55 of file ExpressionParserTypes.h.

◆ GetString()

FString FStringToken::GetString ( ) const
inline

Get the string representation of this token

Definition at line 44 of file ExpressionParserTypes.h.

+ Here is the call graph for this function:

◆ GetTokenEndPos()

const TCHAR * FStringToken::GetTokenEndPos ( ) const
inline

Definition at line 51 of file ExpressionParserTypes.h.

◆ GetTokenStartPos()

const TCHAR * FStringToken::GetTokenStartPos ( ) const
inline

Get the position of the start and end of this token in the stream

Definition at line 50 of file ExpressionParserTypes.h.

◆ IsValid()

bool FStringToken::IsValid ( ) const
inline

Check if this token is valid

Definition at line 47 of file ExpressionParserTypes.h.

Friends And Related Symbol Documentation

◆ FTokenStream

Definition at line 61 of file ExpressionParserTypes.h.

Member Data Documentation

◆ CharacterIndex

int32 FStringToken::CharacterIndex
protected

Definition at line 72 of file ExpressionParserTypes.h.

◆ LineNumber

int32 FStringToken::LineNumber
protected

Line number and Character index

Definition at line 72 of file ExpressionParserTypes.h.

◆ TokenEnd

const TCHAR* FStringToken::TokenEnd
protected

The end of the token

Definition at line 70 of file ExpressionParserTypes.h.

◆ TokenStart

const TCHAR* FStringToken::TokenStart
protected

The start of the token

Definition at line 68 of file ExpressionParserTypes.h.


The documentation for this class was generated from the following file: