Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTextStringHelper
Description
Create an FText instance from the given stream of text.
This uses ReadFromBuffer internally, but will fallback to FText::FromString if ReadFromBuffer fails to parse the buffer.
| Name | CreateFromBuffer |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
| Include Path | #include "Internationalization/Text.h" |
| Source | /Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp |
static FText CreateFromBuffer
(
const TCHAR * Buffer,
const TCHAR * TextNamespace,
const TCHAR * PackageNamespace,
const bool bRequiresQuotes
)
The parsed FText instance.
Parameters
| Name | Remarks |
|---|---|
| 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). |