System::Globalization::CultureInfo class
Contents
[
Hide
]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
Method | Description |
---|---|
ClearCachedData() | Refreshes cached culture information. |
Clone() override | Clones 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>) override | Compares objects. |
virtual get_Calendar() const | Gets calendar used by the culture. |
virtual get_CompareInfo() const | Gets string comparer that adheres to culture rules. |
get_CultureTypes() const | Gets 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() const | Gets 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() const | Gets culture display name. |
virtual get_EnglishName() const | Gets culture English name. |
get_IetfLanguageTag() const | Gets 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() const | Checks whether the culture is neutral. |
get_IsReadOnly() const | Checks if culture object is read-only. |
virtual get_KeyboardLayoutId() const | Gets active input locale identifier. |
virtual get_LCID() const | Gets culture identifier. |
virtual get_Name() const | Gets culture name. |
virtual get_NativeName() const | Gets culture native name. |
virtual get_NumberFormat() const | Gets number format information. |
virtual get_OptionalCalendars() const | List of calendars that can be used with the culture. |
virtual get_Parent() const | Gets parent culture. |
virtual get_TextInfo() const | Gets text parameters used by the culture. |
virtual get_ThreeLetterISOLanguageName() const | Gets three-letter ISO 639-2 language code. |
virtual get_ThreeLetterWindowsLanguageName() const | Gets three-letter code for language as defined in Windows API. |
virtual get_TwoLetterISOLanguageName() const | Gets two letters ISO language name associated with culture. |
get_UseUserOverride() const | Gets a flag indicating whether the CultureInfo uses user-selected culture settings. |
GetConsoleFallbackUICulture() const | Gets 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&) override | Gets format object for specific type. |
GetHashCode() const override | Returns object hash code. |
IsInherited() const | Gets is-inherited flag. FOR INTERNAL USE. |
operator=(const CultureInfo&) | |
operator==(const CultureInfo&) const | Compares 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 override | Converts culture to string. |
See Also
- Class Object
- Class IFormatProvider
- Class ICloneable
- Namespace System::Globalization
- Library Aspose.PDF for C++