System::Globalization Namespace Reference

Namespaces

 Details
 

Classes

class  Calendar
 
class  CharUnicodeInfo
 Gets information about unicode character. More...
 
class  ChineseLunisolarCalendar
 
class  CompareInfo
 
class  CultureInfo
 
class  DateTimeFormatInfo
 
class  DaylightTime
 
class  EastAsianLunisolarCalendar
 
class  GlobalizationExtensions
 Globalization related methods. More...
 
class  GregorianCalendar
 
class  HebrewCalendar
 
class  HijriCalendar
 
class  IdnMapping
 
class  JapaneseCalendar
 
class  JapaneseLunisolarCalendar
 
class  JulianCalendar
 
class  KoreanCalendar
 
class  KoreanLunisolarCalendar
 
class  NumberFormatInfo
 
class  PersianCalendar
 
class  RegionInfo
 
class  SortKey
 
class  SortVersion
 
class  StringInfo
 
class  TaiwanCalendar
 
class  TaiwanLunisolarCalendar
 
class  TextElementEnumerator
 
class  TextInfo
 
class  ThaiBuddhistCalendar
 
class  UmAlQuraCalendar
 

Typedefs

typedef SharedPtr< CalendarCalendarPtr
 Calendar pointer type. More...
 
typedef SharedPtr< ChineseLunisolarCalendarChineseLunisolarCalendarPtr
 ChineseLunisolarCalendar pointer type. More...
 
typedef SharedPtr< CompareInfoCompareInfoPtr
 CompareInfo pointer type. More...
 
typedef SharedPtr< CultureInfoCultureInfoPtr
 CultureInfo pointer type. More...
 
typedef SharedPtr< DateTimeFormatInfoDateTimeFormatInfoPtr
 DateTimeFormatInfo info pointer. More...
 
typedef SharedPtr< DaylightTimeDaylightTimePtr
 DaylightTime pointer type. More...
 
typedef SharedPtr< EastAsianLunisolarCalendarEastAsianLunisolarCalendarPtr
 EastAsianLunisolarCalendar pointer type. More...
 
typedef SharedPtr< GregorianCalendarGregorianCalendarPtr
 GregorianCalendar pointer type. More...
 
typedef SharedPtr< HebrewCalendarHebrewCalendarPtr
 HebrewCalendar pointer type. More...
 
typedef SharedPtr< HijriCalendarHijriCalendarPtr
 HijriCalendar pointer type. More...
 
typedef SharedPtr< IdnMappingIdnMappingPtr
 IdnMapping pointer type. More...
 
typedef SharedPtr< JapaneseCalendarJapaneseCalendarPtr
 JapaneseCalendar pointer type. More...
 
typedef SharedPtr< JapaneseLunisolarCalendarJapaneseLunisolarCalendarPtr
 JapaneseLunisolarCalendar pointer type. More...
 
typedef SharedPtr< JulianCalendarJulianCalendarPtr
 JulianCalendar pointer type. More...
 
typedef SharedPtr< KoreanCalendarKoreanCalendarPtr
 KoreanCalendar pointer type. More...
 
typedef SharedPtr< KoreanLunisolarCalendarKoreanLunisolarCalendarPtr
 KoreanLunisolarCalendar pointer type. More...
 
typedef SharedPtr< NumberFormatInfoNumberFormatInfoPtr
 NumberFormatInfo pointer. More...
 
typedef SharedPtr< PersianCalendarPersianCalendarPtr
 PersianCalendar pointer type. More...
 
typedef SharedPtr< RegionInfoRegionInfoPtr
 RegionInfo pointer type. More...
 
typedef SharedPtr< SortKeySortKeyPtr
 SortKey pointer type. More...
 
typedef SharedPtr< SortVersionSortVersionPtr
 SortVersion pointer type. More...
 
typedef SharedPtr< StringInfoStringInfoPtr
 StringInfo pointer type. More...
 
typedef SharedPtr< TaiwanCalendarTaiwanCalendarPtr
 TaiwanCalendar pointer type. More...
 
typedef SharedPtr< TaiwanLunisolarCalendarTaiwanLunisolarCalendarPtr
 TaiwanLunisolarCalendar pointer type. More...
 
typedef SharedPtr< TextElementEnumeratorTextElementEnumeratorPtr
 TextElementEnumerator pointer type. More...
 
typedef SharedPtr< TextInfoTextInfoPtr
 TextInfo pointer type. More...
 
typedef SharedPtr< ThaiBuddhistCalendarThaiBuddhistCalendarPtr
 ThaiBuddhistCalendar pointer type. More...
 
typedef SharedPtr< UmAlQuraCalendarUmAlQuraCalendarPtr
 UmAlQuraCalendar pointer type. More...
 

Enumerations

enum  CalendarAlgorithmType { CalendarAlgorithmType::LunarCalendar, CalendarAlgorithmType::LunisolarCalendar, CalendarAlgorithmType::SolarCalendar, CalendarAlgorithmType::Unknown }
 Calendar type. More...
 
enum  CalendarWeekRule : int32_t { CalendarWeekRule::FirstDay, CalendarWeekRule::FirstFullWeek, CalendarWeekRule::FirstFourDayWeek }
 How to determine first week of the year. More...
 
enum  CompareOptions : int32_t {
  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 : int32_t {
  CultureTypes::NeutralCultures = 1, CultureTypes::SpecificCultures = 2, CultureTypes::InstalledWin32Cultures = 4, CultureTypes::AllCultures = NeutralCultures | SpecificCultures | InstalledWin32Cultures,
  CultureTypes::UserCustomCulture = 8, CultureTypes::ReplacementCultures = 16, CultureTypes::WindowsOnlyCultures = 32, CultureTypes::FrameworkCultures = 64
}
 Culture categories bitmask entries. More...
 
enum  DateTimeStyles : int32_t {
  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  DigitShapes : int32_t { DigitShapes::Context = 0, DigitShapes::None = 1, DigitShapes::NativeNational = 2 }
 Specifies display of digits. More...
 
enum  GregorianCalendarTypes : int32_t {
  GregorianCalendarTypes::Localized = static_cast<int>(Details::CalendarId::GREGORIAN), GregorianCalendarTypes::USEnglish = static_cast<int>(Details::CalendarId::GREGORIAN_US), GregorianCalendarTypes::MiddleEastFrench = static_cast<int>(Details::CalendarId::GREGORIAN_ME_FRENCH), GregorianCalendarTypes::Arabic = static_cast<int>(Details::CalendarId::GREGORIAN_ARABIC),
  GregorianCalendarTypes::TransliteratedEnglish = static_cast<int>(Details::CalendarId::GREGORIAN_XLIT_ENGLISH), GregorianCalendarTypes::TransliteratedFrench = static_cast<int>(Details::CalendarId::GREGORIAN_XLIT_FRENCH)
}
 Types of gregorian calendars. More...
 
enum  NumberStyles : int32_t {
  NumberStyles::None = 0, NumberStyles::AllowLeadingWhite = 1, NumberStyles::AllowTrailingWhite = 2, NumberStyles::AllowLeadingSign = 4,
  NumberStyles::Integer = AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign, NumberStyles::AllowTrailingSign = 8, NumberStyles::AllowParentheses = 16, NumberStyles::AllowDecimalPoint = 32,
  NumberStyles::AllowThousands = 64, NumberStyles::Number = Integer | AllowTrailingSign | AllowDecimalPoint | AllowThousands, NumberStyles::AllowExponent = 128, NumberStyles::Float = Integer | AllowDecimalPoint | AllowExponent,
  NumberStyles::AllowCurrencySymbol = 256, NumberStyles::Currency = Integer | AllowTrailingSign | AllowParentheses | AllowDecimalPoint | AllowThousands | AllowCurrencySymbol, NumberStyles::Any = Integer | AllowTrailingSign | AllowParentheses | AllowDecimalPoint | AllowThousands | AllowExponent | AllowCurrencySymbol, NumberStyles::AllowHexSpecifier = 512,
  NumberStyles::HexNumber = AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier
}
 Number style allowed when parsing. More...
 
enum  TimeSpanStyles : int32_t { TimeSpanStyles::None = 0, TimeSpanStyles::AssumeNegative = 1 }
 Specifies the formatting options that customize string parsing for methods that convert a string representation of a time interval into Timespan object. 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

◆ ChineseLunisolarCalendarPtr

◆ CompareInfoPtr

◆ CultureInfoPtr

◆ DateTimeFormatInfoPtr

◆ DaylightTimePtr

DaylightTime pointer type.

Shared pointer to an instance of TimeZone class.

◆ EastAsianLunisolarCalendarPtr

◆ GregorianCalendarPtr

◆ HebrewCalendarPtr

◆ HijriCalendarPtr

◆ IdnMappingPtr

◆ JapaneseCalendarPtr

◆ JapaneseLunisolarCalendarPtr

◆ JulianCalendarPtr

◆ KoreanCalendarPtr

◆ KoreanLunisolarCalendarPtr

◆ NumberFormatInfoPtr

◆ PersianCalendarPtr

◆ RegionInfoPtr

◆ SortKeyPtr

◆ SortVersionPtr

◆ StringInfoPtr

◆ TaiwanCalendarPtr

◆ TaiwanLunisolarCalendarPtr

◆ TextElementEnumeratorPtr

◆ TextInfoPtr

◆ ThaiBuddhistCalendarPtr

◆ UmAlQuraCalendarPtr

Enumeration Type Documentation

◆ CalendarAlgorithmType

Calendar type.

Enumerator
LunarCalendar 

Lunar-based calendar.

LunisolarCalendar 

Lunar and solar-based calendar.

SolarCalendar 

Solar calendar.

Unknown 

Unknown calendar.

◆ 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 

First 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

enum System::Globalization::CultureTypes : int32_t
strong

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.

◆ DigitShapes

enum System::Globalization::DigitShapes : int32_t
strong

Specifies display of digits.

Enumerator
Context 

Digit shape depends on previous text.

None 

Digit shape is not changed.

NativeNational 

ASCII digits 0..9 replaced by native national digits.

◆ 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

enum System::Globalization::NumberStyles : int32_t
strong

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.

◆ TimeSpanStyles

Specifies the formatting options that customize string parsing for methods that convert a string representation of a time interval into Timespan object.

Enumerator
None 

The time interval represented by the inptut string is interpreted as a negative time interval only if a negative sign is present.

AssumeNegative 

The time interval represented by the inptut string is interpreted as a negative time interval always.

◆ 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.