FTokenStream::ParseToken

Parse out a token using the supplied predicate.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Misc/ExpressionParserTypes.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/ExpressionParser.cpp

Syntax

TOptional< FStringToken > ParseToken
(
    TFunctionRef< EParseState)> Pred,
    FStringToken * Accumulate
) const

Remarks

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

Parse out a token