FStringToken

Simple struct that defines a specific token contained in an [FTokenStream](API\Runtime\Core\Misc\FTokenStream)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ExpressionParserTypes.h

Include

#include "Misc/ExpressionParserTypes.h"

Syntax

class FStringToken

Remarks

Simple struct that defines a specific token contained in an FTokenStream

Variables

Name Description

Protected variable

int32

 

CharacterIndex

Protected variable

int32

 

LineNumber

Line number and Character index

Protected variable

const TCHAR ...

 

TokenEnd

The end of the token

Protected variable

const TCHAR ...

 

TokenStart

The start of the token

Constructors

Name Description

Public function

FStringToken()

Protected function

FStringToken

(
    const TCHAR* InStart,
    int32 Line,
    int32 Character
)

Functions

Name Description

Public function

void

 

Accumulate

(
    const FStringToken& InToken
)

Accumulate another token into this one

Public function Const

int32

 

GetCharacterIndex()

Contextual information about this token

Public function Const

int32

 

GetLineNumber()

Public function Const

FString

 

GetString()

Get the string representation of this token

Public function Const

const TCHAR ...

 

GetTokenEndPos()

Public function Const

const TCHAR ...

 

GetTokenStartPos()

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

Public function Const

bool

 

IsValid()

Check if this token is valid

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss