Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Lex Namespace Reference

Functions

void FromString (int8 &OutValue, const TCHAR *Buffer)
 
void FromString (int16 &OutValue, const TCHAR *Buffer)
 
void FromString (int32 &OutValue, const TCHAR *Buffer)
 
void FromString (int64 &OutValue, const TCHAR *Buffer)
 
void FromString (uint8 &OutValue, const TCHAR *Buffer)
 
void FromString (uint16 &OutValue, const TCHAR *Buffer)
 
void FromString (uint32 &OutValue, const TCHAR *Buffer)
 
void FromString (uint64 &OutValue, const TCHAR *Buffer)
 
void FromString (float &OutValue, const TCHAR *Buffer)
 
void FromString (double &OutValue, const TCHAR *Buffer)
 
void FromString (FString &OutValue, const TCHAR *Buffer)
 
template<typename CharType >
TEnableIf< TIsCharType< CharType >::Value, FString >::Type ToString (const CharType *Ptr)
 
FString ToString (bool Value)
 
FORCEINLINE FString ToString (FString &&Str)
 
FORCEINLINE FString ToString (const FString &Str)
 
template<typename T >
FString ToSanitizedString (const T &Value)
 
template<typename T >
static TEnableIf< TIsArithmetic< T >::Value, bool >::Type TryParseString (T &OutValue, const TCHAR *Buffer)
 

Detailed Description

Namespace that houses lexical conversion for various types. User defined conversions can be implemented externally

Function Documentation

◆ FromString() [1/11]

void Lex::FromString ( double & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1846 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [2/11]

void Lex::FromString ( float & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1845 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [3/11]

void Lex::FromString ( FString & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1847 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [4/11]

void Lex::FromString ( int16 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1838 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [5/11]

void Lex::FromString ( int32 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1839 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [6/11]

void Lex::FromString ( int64 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1840 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [7/11]

void Lex::FromString ( int8 & OutValue,
const TCHAR * Buffer )
inline

Expected functions in this namespace are as follows: bool TryParseString(T& OutValue, const TCHAR* Buffer); void FromString(T& OutValue, const TCHAR* Buffer); <implicitly convertible to string> ToString(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

Definition at line 1837 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [8/11]

void Lex::FromString ( uint16 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1842 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [9/11]

void Lex::FromString ( uint32 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1843 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [10/11]

void Lex::FromString ( uint64 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1844 of file FString.h.

+ Here is the call graph for this function:

◆ FromString() [11/11]

void Lex::FromString ( uint8 & OutValue,
const TCHAR * Buffer )
inline

Definition at line 1841 of file FString.h.

+ Here is the call graph for this function:

◆ ToSanitizedString()

template<typename T >
FString Lex::ToSanitizedString ( const T & Value)

Helper template to convert to sanitized strings

Definition at line 1873 of file FString.h.

◆ ToString() [1/4]

FString Lex::ToString ( bool Value)
inline

Definition at line 1856 of file FString.h.

◆ ToString() [2/4]

template<typename CharType >
TEnableIf< TIsCharType< CharType >::Value, FString >::Type Lex::ToString ( const CharType * Ptr)

Definition at line 1851 of file FString.h.

◆ ToString() [3/4]

FORCEINLINE FString Lex::ToString ( const FString & Str)

Definition at line 1866 of file FString.h.

◆ ToString() [4/4]

FORCEINLINE FString Lex::ToString ( FString && Str)

Definition at line 1861 of file FString.h.

+ Here is the call graph for this function:

◆ TryParseString()

template<typename T >
static TEnableIf< TIsArithmetic< T >::Value, bool >::Type Lex::TryParseString ( T & OutValue,
const TCHAR * Buffer )
static

Parse a string into this type, returning whether it was successful Specialization for arithmetic types

Definition at line 1882 of file FString.h.