Ark Server API (ASA) - Wiki
|
#include "Containers/Array.h"
#include "Containers/UnrealString.h"
#include "CoreTypes.h"
#include "Delegates/Delegate.h"
#include "Internationalization/CulturePointer.h"
#include "Internationalization/LocTesting.h"
#include "Internationalization/Text.h"
#include "Templates/SharedPointer.h"
#include "Templates/Tuple.h"
#include "Templates/UniqueObj.h"
#include "UObject/NameTypes.h"
Go to the source code of this file.
Classes | |
class | FInternationalization |
struct | FInternationalization::FCultureStateSnapshot |
Namespaces | |
namespace | UE4LocGen_Private |
Functions | |
FCulturePtr | UE4LocGen_Private::GetCultureImpl (const TCHAR *InCulture) |
#define INVTEXT | ( | InTextLiteral | ) | FText::AsCultureInvariant(TEXT(InTextLiteral)) |
Creates a culture invariant FText from the given string literal.
Definition at line 301 of file Internationalization.h.
#define LOC_DEFINE_REGION |
Definition at line 16 of file Internationalization.h.
#define LOCGEN_CURRENCY | ( | InNum, | |
InCurrency, | |||
InCulture ) FText::AsCurrencyBase(InNum, TEXT(InCurrency), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given number as a currency (alias for FText::AsCurrencyBase). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InNum | The number to generate the FText from, specified in the smallest fractional value of the currency being used. |
InCurrency | The currency code (eg, USD, GBP, EUR). |
InCulture | The culture code to use, or an empty string to use the active locale. |
Definition at line 334 of file Internationalization.h.
#define LOCGEN_DATE_LOCAL | ( | InUnixTime, | |
InDateStyle, | |||
InCulture ) FText::AsDate(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 345 of file Internationalization.h.
#define LOCGEN_DATE_UTC | ( | InUnixTime, | |
InDateStyle, | |||
InTimeZone, | |||
InCulture ) FText::AsDate(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given timestamp as a date (alias for FText::AsDate). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InUnixTime | The Unix timestamp to generate the FText from. |
InDateStyle | The style to use for the date. |
InTimeZone | The timezone to display the timestamp in. |
InCulture | The culture code to use, or an empty string to use the active locale. |
Definition at line 344 of file Internationalization.h.
#define LOCGEN_DATETIME_CUSTOM_LOCAL | ( | InUnixTime, | |
InPattern, | |||
InCulture ) FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), TEXT(InPattern), FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 379 of file Internationalization.h.
#define LOCGEN_DATETIME_CUSTOM_UTC | ( | InUnixTime, | |
InPattern, | |||
InTimeZone, | |||
InCulture ) FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), TEXT(InPattern), TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given timestamp as a date and time (alias for FText::AsDateTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InUnixTime | The Unix timestamp to generate the FText from. |
InPattern | The custom strftime-like pattern for the date/time string (see FDateTime::ToFormattedString). |
InTimeZone | The timezone to display the timestamp in. |
InCulture | The culture code to use, or an empty string to use the active locale. |
Definition at line 378 of file Internationalization.h.
#define LOCGEN_DATETIME_LOCAL | ( | InUnixTime, | |
InDateStyle, | |||
InTimeStyle, | |||
InCulture ) FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, InTimeStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 368 of file Internationalization.h.
#define LOCGEN_DATETIME_UTC | ( | InUnixTime, | |
InDateStyle, | |||
InTimeStyle, | |||
InTimeZone, | |||
InCulture ) FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, InTimeStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given timestamp as a date and time (alias for FText::AsDateTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InUnixTime | The Unix timestamp to generate the FText from. |
InDateStyle | The style to use for the date. |
InTimeStyle | The style to use for the time. |
InTimeZone | The timezone to display the timestamp in. |
InCulture | The culture code to use, or an empty string to use the active locale. |
Definition at line 367 of file Internationalization.h.
#define LOCGEN_FORMAT_NAMED | ( | InPattern, | |
... ) FText::FormatNamed(InPattern, __VA_ARGS__) |
Generate an FText representation of the given format pattern with the named arguments inserted into it (alias for FText::FormatNamed). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
Definition at line 403 of file Internationalization.h.
#define LOCGEN_FORMAT_ORDERED | ( | InPattern, | |
... ) FText::FormatOrdered(InPattern, __VA_ARGS__) |
Generate an FText representation of the given format pattern with the ordered arguments inserted into it (alias for FText::FormatOrdered). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
Definition at line 397 of file Internationalization.h.
#define LOCGEN_NUMBER | ( | InNum, | |
InCulture ) FText::AsNumber(InNum, nullptr, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given number (alias for FText::AsNumber). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InNum | The number to generate the FText from. |
InCulture | The culture code to use, or an empty string to use the active locale. |
InOpts | Custom formatting options specified as chained setter functions of FNumberFormattingOptions (eg, SetAlwaysSign(true).SetUseGrouping(false)). |
Definition at line 310 of file Internationalization.h.
#define LOCGEN_NUMBER_CUSTOM | ( | InNum, | |
InOpts, | |||
InCulture ) FText::AsNumber(InNum, &FNumberFormattingOptions().InOpts, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 313 of file Internationalization.h.
#define LOCGEN_NUMBER_GROUPED | ( | InNum, | |
InCulture ) FText::AsNumber(InNum, &FNumberFormattingOptions::DefaultWithGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 311 of file Internationalization.h.
#define LOCGEN_NUMBER_UNGROUPED | ( | InNum, | |
InCulture ) FText::AsNumber(InNum, &FNumberFormattingOptions::DefaultNoGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 312 of file Internationalization.h.
#define LOCGEN_PERCENT | ( | InNum, | |
InCulture ) FText::AsPercent(InNum, nullptr, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given number as a percentage (alias for FText::AsPercent). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InNum | The number to generate the FText from. |
InCulture | The culture code to use, or an empty string to use the active locale. |
InOpts | Custom formatting options specified as chained setter functions of FNumberFormattingOptions (eg, SetAlwaysSign(true).SetUseGrouping(false)). |
Definition at line 322 of file Internationalization.h.
#define LOCGEN_PERCENT_CUSTOM | ( | InNum, | |
InOpts, | |||
InCulture ) FText::AsPercent(InNum, &FNumberFormattingOptions().InOpts, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 325 of file Internationalization.h.
#define LOCGEN_PERCENT_GROUPED | ( | InNum, | |
InCulture ) FText::AsPercent(InNum, &FNumberFormattingOptions::DefaultWithGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 323 of file Internationalization.h.
#define LOCGEN_PERCENT_UNGROUPED | ( | InNum, | |
InCulture ) FText::AsPercent(InNum, &FNumberFormattingOptions::DefaultNoGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 324 of file Internationalization.h.
#define LOCGEN_TIME_LOCAL | ( | InUnixTime, | |
InTimeStyle, | |||
InCulture ) FText::AsTime(FDateTime::FromUnixTimestamp(InUnixTime), InTimeStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Definition at line 356 of file Internationalization.h.
#define LOCGEN_TIME_UTC | ( | InUnixTime, | |
InTimeStyle, | |||
InTimeZone, | |||
InCulture ) FText::AsTime(FDateTime::FromUnixTimestamp(InUnixTime), InTimeStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture))) |
Generate an FText representation of the given timestamp as a time (alias for FText::AsTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
InUnixTime | The Unix timestamp to generate the FText from. |
InTimeStyle | The style to use for the time. |
InTimeZone | The timezone to display the timestamp in. |
InCulture | The culture code to use, or an empty string to use the active locale. |
Definition at line 355 of file Internationalization.h.
Generate an FText representation of the given FText when transformed into lower-case (alias for FText::ToLower). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
Definition at line 391 of file Internationalization.h.
Generate an FText representation of the given FText when transformed into upper-case (alias for FText::ToUpper). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.
Definition at line 385 of file Internationalization.h.
#define LOCTEXT | ( | InKey, | |
InTextLiteral ) FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText(TEXT(InTextLiteral), TEXT(LOCTEXT_NAMESPACE), TEXT(InKey)) |
The global namespace that must be defined/undefined to wrap uses of the NS-prefixed macros below Creates an FText. All parameters must be string literals. All literals will be passed through the localization system. The global LOCTEXT_NAMESPACE macro must be first set to a string literal to specify this localization key's namespace.
Definition at line 291 of file Internationalization.h.
#define NSLOCTEXT | ( | InNamespace, | |
InKey, | |||
InTextLiteral ) FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText(TEXT(InTextLiteral), TEXT(InNamespace), TEXT(InKey)) |
Creates an FText. All parameters must be string literals. All literals will be passed through the localization system.
Definition at line 296 of file Internationalization.h.