LexFromString

Syntax

void LexFromString
(
    int8 & OutValue,
    const TCHAR * Buffer
)

Remarks

Generalized API to convert something to a string. Function named after the (deprecated) Lex namespace, which was deprecated because introducing customization points in a nested namespace didn't work in generic code because it foiled 2-phase template instantiating compilers, which would bind to the qualified name (LexToString) in the first phase, preventing future overloads defined in later headers to be considered for binding. Expected functions in this namespace are as follows: bool LexTryParseString(T& OutValue, const TCHAR* Buffer); void LexFromString(T& OutValue, const TCHAR* Buffer); =""> LexToString(T); ^ Generally this means it can return either FString or const TCHAR* Generic code that uses ToString should assign to an FString or forward along to other functions that accept types that are also implicitly convertible to FString

Implement custom functionality externally.Covert a string buffer to intrinsic types

References

Module

Core

Header

Runtime/Core/Public/Containers/UnrealString.h