System::Globalization Namespace Reference

Classes

class  Calendar
 
class  CompareInfo
 
class  CultureInfo
 
class  DateTimeFormatInfo
 
class  GregorianCalendar
 
class  HebrewCalendar
 
class  HijriCalendar
 
class  JapaneseCalendar
 
class  KoreanCalendar
 
class  Number
 
class  NumberFormatInfo
 
class  RegionInfo
 
class  StringInfo
 
class  TextElementEnumerator
 
class  TextInfo
 
class  ThaiBuddhistCalendar
 

Typedefs

typedef SharedPtr< CalendarCalendarPtr
 Calendar pointer type. More...
 
typedef SharedPtr< CultureInfoCultureInfoPtr
 Culture info pointer type. More...
 
typedef SharedPtr< DateTimeFormatInfoDateTimeFormatInfoPtr
 Date and time format info pointer. More...
 
typedef SharedPtr< NumberFormatInfoNumberFormatInfoPtr
 Number format info pointer. More...
 

Enumerations

enum  CalendarId {
  UNINITIALIZED_VALUE = 0, GREGORIAN = 1, GREGORIAN_US = 2, JAPAN = 3,
  TAIWAN = 4, KOREA = 5, HIJRI = 6, THAI = 7,
  HEBREW = 8, GREGORIAN_ME_FRENCH = 9, GREGORIAN_ARABIC = 10, GREGORIAN_XLIT_ENGLISH = 11,
  GREGORIAN_XLIT_FRENCH = 12, JULIAN = 13, JAPANESELUNISOLAR = 14, CHINESELUNISOLAR = 15,
  SAKA = 16, LUNAR_ETO_CHN = 17, LUNAR_ETO_KOR = 18, LUNAR_ETO_ROKUYOU = 19,
  KOREANLUNISOLAR = 20, TAIWANLUNISOLAR = 21, PERSIAN = 22, UMALQURA = 23,
  LAST_CALENDAR = 23
}
 Identifiers of known calendars. More...
 
enum  CalendarAlgorithmType { CalendarAlgorithmType::LunarCalendar, CalendarAlgorithmType::LunisolarCalendar, CalendarAlgorithmType::SolarCalendar, CalendarAlgorithmType::Unknown }
 Calendar type. More...
 
enum  CalendarWeekRule { CalendarWeekRule::FirstDay, CalendarWeekRule::FirstFullWeek, CalendarWeekRule::FirstFourDayWeek }
 How to determine first week of the year. More...
 
enum  CompareOptions {
  CompareOptions::None = 0x00000000, CompareOptions::IgnoreCase = 0x00000001, CompareOptions::IgnoreNonSpace = 0x00000002, CompareOptions::IgnoreSymbols = 0x00000004,
  CompareOptions::IgnoreKanaType = 0x00000008, CompareOptions::IgnoreWidth = 0x00000010, CompareOptions::OrdinalIgnoreCase = 0x10000000, CompareOptions::StringSort = 0x20000000,
  CompareOptions::Ordinal = 0x40000000
}
 String comparison options. More...
 
enum  CultureTypes : uint32_t {
  NeutralCultures = 1, SpecificCultures = 2, InstalledWin32Cultures = 4, AllCultures = 7,
  UserCustomCulture = 8, ReplacementCultures = 16, WindowsOnlyCultures = 32, FrameworkCultures = 64
}
 Culture categories bitmask entries. More...
 
enum  DateTimeStyles {
  DateTimeStyles::None = 0x00000000, DateTimeStyles::AllowLeadingWhite = 0x00000001, DateTimeStyles::AllowTrailingWhite = 0x00000002, DateTimeStyles::AllowInnerWhite = 0x00000004,
  DateTimeStyles::AllowWhiteSpaces = AllowLeadingWhite | AllowInnerWhite | AllowTrailingWhite, DateTimeStyles::NoCurrentDateDefault = 0x00000008, DateTimeStyles::AdjustToUniversal = 0x00000010, DateTimeStyles::AssumeLocal = 0x00000020,
  DateTimeStyles::AssumeUniversal = 0x00000040, DateTimeStyles::RoundtripKind = 0x00000080
}
 Defines date and time formatting options. Bit flags. More...
 
enum  GregorianCalendarTypes {
  Localized = CalendarId::GREGORIAN, USEnglish = CalendarId::GREGORIAN_US, MiddleEastFrench = CalendarId::GREGORIAN_ME_FRENCH, Arabic = CalendarId::GREGORIAN_ARABIC,
  TransliteratedEnglish = CalendarId::GREGORIAN_XLIT_ENGLISH, TransliteratedFrench = CalendarId::GREGORIAN_XLIT_FRENCH
}
 Types of gregorian calendars. More...
 
enum  NumberStyles {
  NumberStyles::None = 0, NumberStyles::AllowLeadingWhite = 1, NumberStyles::AllowTrailingWhite = 2, NumberStyles::AllowLeadingSign = 4,
  NumberStyles::Integer = 7, NumberStyles::AllowTrailingSign = 8, NumberStyles::AllowParentheses = 16, NumberStyles::AllowDecimalPoint = 32,
  NumberStyles::AllowThousands = 64, NumberStyles::Number = 111, NumberStyles::AllowExponent = 128, NumberStyles::Float = 167,
  NumberStyles::AllowCurrencySymbol = 256, NumberStyles::Currency = 383, NumberStyles::Any = 511, NumberStyles::AllowHexSpecifier = 512,
  NumberStyles::HexNumber = 515
}
 Number style allowed when parsing. More...
 
enum  UnicodeCategory {
  UnicodeCategory::UppercaseLetter = 0, UnicodeCategory::LowercaseLetter = 1, UnicodeCategory::TitlecaseLetter = 2, UnicodeCategory::ModifierLetter = 3,
  UnicodeCategory::OtherLetter = 4, UnicodeCategory::NonSpacingMark = 5, UnicodeCategory::SpacingCombiningMark = 6, UnicodeCategory::EnclosingMark = 7,
  UnicodeCategory::DecimalDigitNumber = 8, UnicodeCategory::LetterNumber = 9, UnicodeCategory::OtherNumber = 10, UnicodeCategory::SpaceSeparator = 11,
  UnicodeCategory::LineSeparator = 12, UnicodeCategory::ParagraphSeparator = 13, UnicodeCategory::Control = 14, UnicodeCategory::Format = 15,
  UnicodeCategory::Surrogate = 16, UnicodeCategory::PrivateUse = 17, UnicodeCategory::ConnectorPunctuation = 18, UnicodeCategory::DashPunctuation = 19,
  UnicodeCategory::OpenPunctuation = 20, UnicodeCategory::ClosePunctuation = 21, UnicodeCategory::InitialQuotePunctuation = 22, UnicodeCategory::FinalQuotePunctuation = 23,
  UnicodeCategory::OtherPunctuation = 24, UnicodeCategory::MathSymbol = 25, UnicodeCategory::CurrencySymbol = 26, UnicodeCategory::ModifierSymbol = 27,
  UnicodeCategory::OtherSymbol = 28, UnicodeCategory::OtherNotAssigned = 29
}
 Category of unicode character. More...
 

Typedef Documentation

◆ CalendarPtr

◆ CultureInfoPtr

Culture info pointer type.

◆ DateTimeFormatInfoPtr

Date and time format info pointer.

◆ NumberFormatInfoPtr

Enumeration Type Documentation

◆ CalendarAlgorithmType

Calendar type.

Enumerator
LunarCalendar 

Lunar-based calendar.

LunisolarCalendar 

Lunar and solar-based calendar.

SolarCalendar 

Solar calendar.

Unknown 

Unknown calendar.

◆ CalendarId

Identifiers of known calendars.

Enumerator
UNINITIALIZED_VALUE 

No calendar.

GREGORIAN 

Localized gregorian calendar.

GREGORIAN_US 

US gregorian calendar.

JAPAN 

Japanese calendar.

TAIWAN 

Taiwanian calendar.

KOREA 

Korean calendar.

HIJRI 

Arabic lunar calendar.

THAI 

Thai calendar.

HEBREW 

Hebrew calendar.

GREGORIAN_ME_FRENCH 

Gregorian Middle East French calendar.

GREGORIAN_ARABIC 

Gregorian Arabic calendar.

GREGORIAN_XLIT_ENGLISH 

Gregorian transliterated English calendar.

GREGORIAN_XLIT_FRENCH 

Gregorian transliterated French calendar.

JULIAN 

Julian calendar.

JAPANESELUNISOLAR 

Japanese lunar-solar calendar.

CHINESELUNISOLAR 

Chinese lunar-solar calendar.

SAKA 

Reserved.

LUNAR_ETO_CHN 

Reserved.

LUNAR_ETO_KOR 

Reserved.

LUNAR_ETO_ROKUYOU 

Reserved.

KOREANLUNISOLAR 

Korean lunar-solar calendar.

TAIWANLUNISOLAR 

Taiwanian lunar-solar calendar.

PERSIAN 

Persian calendar.

UMALQURA 

Umalqura calendar.

LAST_CALENDAR 

Calendar ID limit.

◆ CalendarWeekRule

How to determine first week of the year.

Enumerator
FirstDay 

First day of the year starts first week of the year.

FirstFullWeek 

First full week of the year is the first one.

FirstFourDayWeek 

Dirst four days long week of the year is the first one.

◆ CompareOptions

String comparison options.

Enumerator
None 

No special options.

IgnoreCase 

Ignore case.

IgnoreNonSpace 

Ignore nonspacing combining characters, e. g. diacritics.

IgnoreSymbols 

Include whitespaces, punctuation signs and so on.

IgnoreKanaType 

Ignore kana type (Japanese).

IgnoreWidth 

Ignore character width wen comparing strings.

OrdinalIgnoreCase 

Ordinal comparison with case difference ignored.

StringSort 

Use string sort algorithm to compare characters.

Ordinal 

Compare UTF codes directly for first comparison.

◆ CultureTypes

Culture categories bitmask entries.

Enumerator
NeutralCultures 

Culture that is specific for language but not for contry or region.

SpecificCultures 

Specific to country/region.

InstalledWin32Cultures 

Cultures installed in OS.

AllCultures 

All avaliable cultures.

UserCustomCulture 

User-defined cultures.

ReplacementCultures 

User-defined replacements for existing cultures.

WindowsOnlyCultures 

Obsolete.

FrameworkCultures 

Obsolete.

◆ DateTimeStyles

Defines date and time formatting options. Bit flags.

Enumerator
None 

Default.

AllowLeadingWhite 

Ignore leading white spaces.

AllowTrailingWhite 

Ignore trailing white spaces.

AllowInnerWhite 

Ignore inner white spaces.

AllowWhiteSpaces 

Ignore all white spaces.

NoCurrentDateDefault 

When parsing a date/time string, if all year/month/day are missing, set the default date to 0001/1/1, instead of the current year/month/day.

AdjustToUniversal 

When parsing a date/time string, if a timezone specifier ("GMT","Z","+xxxx", "-xxxx" exists), we will ajdust the parsed time based to GMT.

AssumeLocal 

If no timezone is given, use local timezone.

AssumeUniversal 

If no timezone is given, use UTC.

RoundtripKind 

Attempt to preserve whether the input is unspecified, local or UTC.

◆ GregorianCalendarTypes

Types of gregorian calendars.

Enumerator
Localized 

Locale-specific gregorian calendar.

USEnglish 

US English gregorian calendar.

MiddleEastFrench 

Middle East French gregorian calendar.

Arabic 

Arabic gregorian calendar.

TransliteratedEnglish 

Transliterated English gregorian calendar.

TransliteratedFrench 

Transliterated French gregorian calendar.

◆ NumberStyles

Number style allowed when parsing.

Enumerator
None 

No non-digit symbols.

AllowLeadingWhite 

Allow leading whitespaces.

AllowTrailingWhite 

Allow trailing whitespaces.

AllowLeadingSign 

Allow leading sign.

Integer 

Default integer formatting.

AllowTrailingSign 

Allow trailing sign.

AllowParentheses 

Allow parenthesis for negative values.

AllowDecimalPoint 

Allow decimal point.

AllowThousands 

Allow group separators.

Number 

Default composite number format.

AllowExponent 

Allow exponent sign.

Float 

Default floating point number format.

AllowCurrencySymbol 

Allow currency symbol.

Currency 

Default currency format.

Any 

Allow any format specifier.

AllowHexSpecifier 

Allow hexadecimal numbers.

HexNumber 

Default hexadecimal number format.

◆ UnicodeCategory

Category of unicode character.

Enumerator
UppercaseLetter 

Upper case letter.

LowercaseLetter 

Lower case letter.

TitlecaseLetter 

Title case letter.

ModifierLetter 

Letter modifier.

OtherLetter 

Other letter.

NonSpacingMark 

Mark character.

SpacingCombiningMark 

Spacing mark.

EnclosingMark 

Enclosing mark.

DecimalDigitNumber 

Decimal digit.

LetterNumber 

Letter number.

OtherNumber 

Other number.

SpaceSeparator 

Space.

LineSeparator 

Line separator.

ParagraphSeparator 

Paragraph separator.

Control 

Control character.

Format 

Format character.

Surrogate 

Surrogate character.

PrivateUse 

Character for private use.

ConnectorPunctuation 

Connector punctuation sign.

DashPunctuation 

Dash punctuation sign.

OpenPunctuation 

Opening punctuation sign.

ClosePunctuation 

Closing punctuation sign.

InitialQuotePunctuation 

Initial quote punctuation sign.

FinalQuotePunctuation 

Final quote punctuation sign.

OtherPunctuation 

Other punctuation sign.

MathSymbol 

Math symbol.

CurrencySymbol 

Currency symbol.

ModifierSymbol 

Modifier symbol.

OtherSymbol 

Other symbol.

OtherNotAssigned 

Not assigned or other.