UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TStringToken< CharType > Class Template Reference

#include <ExpressionParserTypes.h>

Public Member Functions

 TStringToken ()=default
 
TString< CharType > GetString () const
 
bool IsValid () const
 
const CharType * GetTokenStartPos () const
 
const CharType * GetTokenEndPos () const
 
int32 GetCharacterIndex () const
 
int32 GetLineNumber () const
 
void Accumulate (const TStringToken &InToken)
 

Protected Member Functions

 TStringToken (const CharType *InStart, int32 Line=0, int32 Character=0)
 

Protected Attributes

const CharType * TokenStart = nullptr
 
const CharType * TokenEnd = nullptr
 
int32 LineNumber = 0
 
int32 CharacterIndex = 0
 

Friends

class TTokenStream< CharType >
 

Detailed Description

template<typename CharType>
class TStringToken< CharType >

Simple struct that defines a specific token contained in an FTokenStream

Constructor & Destructor Documentation

◆ TStringToken() [1/2]

template<typename CharType >
TStringToken< CharType >::TStringToken ( )
default

◆ TStringToken() [2/2]

template<typename CharType >
TStringToken< CharType >::TStringToken ( const CharType *  InStart,
int32  Line = 0,
int32  Character = 0 
)
inlineexplicitprotected

Member Function Documentation

◆ Accumulate()

template<typename CharType >
void TStringToken< CharType >::Accumulate ( const TStringToken< CharType > &  InToken)
inline

Accumulate another token into this one

◆ GetCharacterIndex()

template<typename CharType >
int32 TStringToken< CharType >::GetCharacterIndex ( ) const
inline

Get the character index of this token in the stream

◆ GetLineNumber()

template<typename CharType >
int32 TStringToken< CharType >::GetLineNumber ( ) const
inline

Get the line number of this token in the stream

◆ GetString()

template<typename CharType >
TString< CharType > TStringToken< CharType >::GetString ( ) const
inline

Get the string representation of this token

◆ GetTokenEndPos()

template<typename CharType >
const CharType * TStringToken< CharType >::GetTokenEndPos ( ) const
inline

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

◆ GetTokenStartPos()

template<typename CharType >
const CharType * TStringToken< CharType >::GetTokenStartPos ( ) const
inline

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

◆ IsValid()

template<typename CharType >
bool TStringToken< CharType >::IsValid ( ) const
inline

Check if this token is valid

Friends And Related Symbol Documentation

◆ TTokenStream< CharType >

template<typename CharType >
friend class TTokenStream< CharType >
friend

Member Data Documentation

◆ CharacterIndex

template<typename CharType >
int32 TStringToken< CharType >::CharacterIndex = 0
protected

◆ LineNumber

template<typename CharType >
int32 TStringToken< CharType >::LineNumber = 0
protected

◆ TokenEnd

template<typename CharType >
const CharType* TStringToken< CharType >::TokenEnd = nullptr
protected

◆ TokenStart

template<typename CharType >
const CharType* TStringToken< CharType >::TokenStart = nullptr
protected

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