Ark Server API (ASA) - Wiki
|
#include <Text.h>
Static Public Member Functions | |
static FText | CreateFromBuffer (const TCHAR *Buffer, const TCHAR *TextNamespace=nullptr, const TCHAR *PackageNamespace=nullptr, const bool bRequiresQuotes=false) |
static const TCHAR * | ReadFromBuffer (const TCHAR *Buffer, FText &OutValue, const TCHAR *TextNamespace=nullptr, const TCHAR *PackageNamespace=nullptr, const bool bRequiresQuotes=false) |
static bool | ReadFromString (const TCHAR *Buffer, FText &OutValue, const TCHAR *TextNamespace=nullptr, const TCHAR *PackageNamespace=nullptr, int32 *OutNumCharsRead=nullptr, const bool bRequiresQuotes=false, const EStringTableLoadingPolicy InLoadingPolicy=EStringTableLoadingPolicy::FindOrLoad) |
static void | WriteToBuffer (FString &Buffer, const FText &Value, const bool bRequiresQuotes=false, const bool bStripPackageNamespace=false) |
static bool | WriteToString (FString &Buffer, const FText &Value, const bool bRequiresQuotes=false) |
static bool | IsComplexText (const TCHAR *Buffer) |
Static Private Member Functions | |
static const TCHAR * | ReadFromBuffer_ComplexText (const TCHAR *Buffer, FText &OutValue, const TCHAR *TextNamespace, const TCHAR *PackageNamespace) |
|
static |
Create an FText instance from the given stream of text.
Buffer | The buffer of text to read from (null terminated). |
TextNamespace | An optional namespace to use when parsing texts that use LOCTEXT (default is an empty namespace). |
PackageNamespace | The package namespace of the containing object (if loading for a property - see TextNamespaceUtil::GetPackageNamespace). |
bRequiresQuotes | True if the read text literal must be surrounded by quotes (eg, when loading from a delimited list). |
Test to see whether a given buffer contains complex text.
|
static |
Attempt to extract an FText instance from the given stream of text.
Buffer | The buffer of text to read from (null terminated). |
OutValue | The text value to fill with the read text. |
TextNamespace | An optional namespace to use when parsing texts that use LOCTEXT (default is an empty namespace). |
PackageNamespace | The package namespace of the containing object (if loading for a property - see TextNamespaceUtil::GetPackageNamespace). |
bRequiresQuotes | True if the read text literal must be surrounded by quotes (eg, when loading from a delimited list). |
|
staticprivate |
|
static |
|
static |
Write the given FText instance to a stream of text
Buffer | The buffer of text to write to. |
Value | The text value to write into the buffer. |
bRequiresQuotes | True if the written text literal must be surrounded by quotes (eg, when saving as a delimited list) |
bStripPackageNamespace | True to strip the package namespace from the written NSLOCTEXT value (eg, when saving cooked data) |
|
static |