class
FCultureFormat
- Module
- Core
- Header
#include "Core/CultureFormat.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FCultureFormat() = delete | FCultureFormat |
Public functions
| Returns | Name | Description |
|---|---|---|
FNumberRules | RulesFor | |
std::string | CurrentCulture | The localization manager's active locale. |
std::string | AsNumber | |
std::string | AsNumber | |
std::string | AsPercent | 0.5 -> "50%" / "50 %" / "%50". |
std::string | AsCurrency | ISO 4217 code; the symbol and its placement come from the culture, the minor digits from the currency (JPY and KRW have none). |
std::string | AsDate | |
std::string | AsTime | second < 0 leaves seconds out. |
std::string | AsMemory | 1536 -> "1.5 KB" / "1,5 KB" (binary units, one decimal). |
Function details
FCultureFormat
C++
FCultureFormat() = deleteRulesFor
C++
static FNumberRules RulesFor(const std::string& culture)CurrentCulture
C++
static std::string CurrentCulture()The localization manager's active locale.
AsNumber
C++
static std::string AsNumber(int64_t value, const std::string& culture = std::string())AsNumber
C++
static std::string AsNumber(double value, int32_t minFractionDigits, int32_t maxFractionDigits, const std::string& culture = std::string())AsPercent
C++
static std::string AsPercent(double fraction, int32_t maxFractionDigits = 0, const std::string& culture = std::string())0.5 -> "50%" / "50 %" / "%50".
AsCurrency
C++
static std::string AsCurrency(double amount, const std::string& currencyCode, const std::string& culture = std::string())ISO 4217 code; the symbol and its placement come from the culture, the minor digits from the currency (JPY and KRW have none).
AsDate
C++
static std::string AsDate(int32_t year, int32_t month, int32_t day, EDateStyle style = EDateStyle::Short, const std::string& culture = std::string())AsTime
C++
static std::string AsTime(int32_t hour, int32_t minute, int32_t second = -1, const std::string& culture = std::string())second < 0 leaves seconds out. 12-hour clock where the culture uses it.
AsMemory
C++
static std::string AsMemory(uint64_t bytes, const std::string& culture = std::string())1536 -> "1.5 KB" / "1,5 KB" (binary units, one decimal).
Generated from Core/CultureFormat.h via core.json · Nov 5, 2026Version 1.0.0