System::Globalization::CultureInfo class

CultureInfo class

Collection of culture-specific values and algorithms. Setter operations are only enabled on non-read-only objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class CultureInfo : public virtual System::Object,
                    public System::IFormatProvider,
                    public System::ICloneable

Methods

MethodDescription
ClearCachedData()Refreshes cached culture information.
Clone() overrideClones culture info.
static CreateSpecificCulture(const String&)Creates culture by name.
explicit CultureInfo(int)RTTI information.
CultureInfo(int, bool)Constructor.
explicit CultureInfo(const String&)Constructor.
CultureInfo(const String&, bool)Constructor.
CultureInfo(std::nullptr_t)Always throws ArgumentNullException.
Equals(SharedPtr<Object>) overrideCompares objects.
virtual get_Calendar() constGets calendar used by the culture.
virtual get_CompareInfo() constGets string comparer that adheres to culture rules.
get_CultureTypes() constGets bitwise joint of culture types that describe the current culture.
static get_CurrentCulture()Gets culture set for current thread.
static get_CurrentUICulture()Gets current thread’s UI culture.
virtual get_DateTimeFormat() constGets date format information.
static get_DefaultThreadCurrentCulture()Gets default culture in the current application domain.
static get_DefaultThreadCurrentUICulture()Gets default UI culture in the current application domain.
virtual get_DisplayName() constGets culture display name.
virtual get_EnglishName() constGets culture English name.
get_IetfLanguageTag() constGets the RFC 4646 name for a language.
static get_InstalledUICulture()Gets culture installed with the operating system.
static get_InvariantCulture()Gets invariant culture.
virtual get_IsNeutralCulture() constChecks whether the culture is neutral.
get_IsReadOnly() constChecks if culture object is read-only.
virtual get_KeyboardLayoutId() constGets active input locale identifier.
virtual get_LCID() constGets culture identifier.
virtual get_Name() constGets culture name.
virtual get_NativeName() constGets culture native name.
virtual get_NumberFormat() constGets number format information.
virtual get_OptionalCalendars() constList of calendars that can be used with the culture.
virtual get_Parent() constGets parent culture.
virtual get_TextInfo() constGets text parameters used by the culture.
virtual get_ThreeLetterISOLanguageName() constGets three-letter ISO 639-2 language code.
virtual get_ThreeLetterWindowsLanguageName() constGets three-letter code for language as defined in Windows API.
virtual get_TwoLetterISOLanguageName() constGets two letters ISO language name associated with culture.
get_UseUserOverride() constGets a flag indicating whether the CultureInfo uses user-selected culture settings.
GetConsoleFallbackUICulture() constGets alternate culture suitable for console applications.
static GetCultureInfo(const String&)Gets culture by its name. Same as CreateSpecificCulture.
static GetCultureInfo(const String&, const String&)Gets culture by its name.
static GetCultureInfo(int32_t)Gets culture by id.
static GetCultureInfoByIetfLanguageTag(const String&)Deprecated. Gets a read-only CultureInfo object by the specified RFC 4646 language tag.
static GetCultures(CultureTypes)Gets cultures that fall into specified types.
GetFormat(const TypeInfo&) overrideGets format object for specific type.
GetHashCode() const overrideReturns object hash code.
IsInherited() constGets is-inherited flag. FOR INTERNAL USE.
operator=(const CultureInfo&)
operator==(const CultureInfo&) constCompares culture parameters.
static ReadOnly(const CultureInfoPtr&)Gets a read only version of culture.
static set_CurrentCulture(const CultureInfoPtr&)Sets culture for current thread.
static set_CurrentUICulture(const CultureInfoPtr&)Sets current thread’s UI culture.
virtual set_DateTimeFormat(DateTimeFormatInfoPtr)Sets date format information.
static set_DefaultThreadCurrentCulture(const CultureInfoPtr&)Sets default culture in the current application domain.
static set_DefaultThreadCurrentUICulture(const CultureInfoPtr&)Sets default UI culture in the current application domain.
virtual set_NumberFormat(NumberFormatInfoPtr)Gets number format information.
ToString() const overrideConverts culture to string.

See Also