System::Globalization::CharUnicodeInfo Class Referencefinal

Gets information about unicode character. More...

Static Public Member Functions

static ASPOSECPP_SHARED_API int GetDecimalDigitValue (char16_t ch)
 
static ASPOSECPP_SHARED_API int GetDecimalDigitValue (const String &str, int index)
 
static ASPOSECPP_SHARED_API int GetDigitValue (char16_t ch)
 
static ASPOSECPP_SHARED_API int GetDigitValue (const String &str, int index)
 
static ASPOSECPP_SHARED_API double GetNumericValue (char16_t ch)
 
static ASPOSECPP_SHARED_API double GetNumericValue (const String &str, int index)
 
static ASPOSECPP_SHARED_API UnicodeCategory GetUnicodeCategory (char16_t ch)
 
static ASPOSECPP_SHARED_API UnicodeCategory GetUnicodeCategory (const String &str, int index)
 

Detailed Description

Gets information about unicode character.

Member Function Documentation

◆ GetDecimalDigitValue() [1/2]

static ASPOSECPP_SHARED_API int System::Globalization::CharUnicodeInfo::GetDecimalDigitValue ( char16_t  ch)
static

Gets decimal digit value of the specified character.

Parameters
chUnicode character.
Returns
The decimal digit value or -1 if the specified character is not a decimal digit.

◆ GetDecimalDigitValue() [2/2]

static ASPOSECPP_SHARED_API int System::Globalization::CharUnicodeInfo::GetDecimalDigitValue ( const String str,
int  index 
)
static

Gets decimal digit value of the character at the specified index of the string.

Parameters
strThe string containing unicode character.
indexThe index of the unicode character.
Returns
The decimal digit value or -1 if the specified character is not a decimal digit.

◆ GetDigitValue() [1/2]

static ASPOSECPP_SHARED_API int System::Globalization::CharUnicodeInfo::GetDigitValue ( char16_t  ch)
static

Gets digit value of the specified character.

Parameters
chUnicode character.
Returns
The digit value or -1 if the specified character is not a digit.

◆ GetDigitValue() [2/2]

static ASPOSECPP_SHARED_API int System::Globalization::CharUnicodeInfo::GetDigitValue ( const String str,
int  index 
)
static

Gets digit value of the character at the specified index of the string.

Parameters
strThe string containing unicode character.
indexThe index of the unicode character.
Returns
The digit value or -1 if the specified character is not a digit.

◆ GetNumericValue() [1/2]

static ASPOSECPP_SHARED_API double System::Globalization::CharUnicodeInfo::GetNumericValue ( char16_t  ch)
static

Gets numeric value associated with the specified character.

Parameters
chUnicode character.
Returns
The numeric value or -1 if the specified character is not a numeric character.

◆ GetNumericValue() [2/2]

static ASPOSECPP_SHARED_API double System::Globalization::CharUnicodeInfo::GetNumericValue ( const String str,
int  index 
)
static

Gets numeric value associated with the character at the specified index of the string.

Parameters
strThe string containing unicode character.
indexThe index of the unicode character.
Returns
The numeric value or -1 if the specified character is not a numeric character.

◆ GetUnicodeCategory() [1/2]

static ASPOSECPP_SHARED_API UnicodeCategory System::Globalization::CharUnicodeInfo::GetUnicodeCategory ( char16_t  ch)
static

Gets unicode category of the character.

Parameters
chUnicode character.
Returns
Unicode category.

◆ GetUnicodeCategory() [2/2]

static ASPOSECPP_SHARED_API UnicodeCategory System::Globalization::CharUnicodeInfo::GetUnicodeCategory ( const String str,
int  index 
)
static

Gets unicode category of the character at the specified index of the string.

Parameters
strThe string containing unicode character.
indexThe index of the unicode character.
Returns
Unicode category.