System::Globalization::Details Namespace Reference

Classes

class  GregorianCalendarUtils
 Gregorian calendar utility functions. More...
 

Typedefs

using CalendarDataPtr = std::shared_ptr< CalendarData >
 Pointer to hold implementation type. More...
 
using CultureDataPtr = std::shared_ptr< CultureData >
 Implementation 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...
 

Functions

template<typename T >
System::String ToString (T value, const System::String &format=nullptr, const System::SharedPtr< System::IFormatProvider > &culture=nullptr)
 
template ASPOSECPP_SHARED_API System::String ToString (float value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (double value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (Decimal value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (char value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (int8_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (uint8_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (int16_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (uint16_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (int32_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (uint32_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (int64_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 
template ASPOSECPP_SHARED_API System::String ToString (uint64_t value, const System::String &format, const System::SharedPtr< System::IFormatProvider > &culture)
 

Typedef Documentation

◆ CalendarDataPtr

using System::Globalization::Details::CalendarDataPtr = typedef std::shared_ptr<CalendarData>

Pointer to hold implementation type.

◆ CultureDataPtr

using System::Globalization::Details::CultureDataPtr = typedef std::shared_ptr<CultureData>

Implementation pointer.

Enumeration Type Documentation

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

Function Documentation

◆ ToString() [1/13]

template<typename T >
System::String System::Globalization::Details::ToString ( value,
const System::String format = nullptr,
const System::SharedPtr< System::IFormatProvider > &  culture = nullptr 
)

Converts random value to string.

Template Parameters
TType to convert.
Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [2/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( float  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts floating point value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [3/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( double  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts floating point value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [4/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( Decimal  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts decimal value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [5/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( char  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts character to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [6/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( int8_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts byte value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [7/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( uint8_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts unsigned byte value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [8/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( int16_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts short value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [9/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( uint16_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts unsigned short value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [10/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( int32_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts integer value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [11/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( uint32_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts unsigned integer value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [12/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( int64_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts long value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.

◆ ToString() [13/13]

template ASPOSECPP_SHARED_API System::String System::Globalization::Details::ToString ( uint64_t  value,
const System::String format,
const System::SharedPtr< System::IFormatProvider > &  culture 
)

Converts unsigned long value to string.

Parameters
valueValue to convert.
formatFormat string.
cultureCulture to use.
Returns
String representation of value passed.