Asposecpplib
System::Globalization::CharUnicodeInfo Class Referencefinal

Gets information about unicode character. More...

Static Public Member Functions

static int GetDecimalDigitValue (char16_t ch)
 Gets decimal digit value of the specified character. More...
 
static int GetDecimalDigitValue (const String &str, int index)
 Gets decimal digit value of the character at the specified index of the string. More...
 
static int GetDigitValue (char16_t ch)
 Gets digit value of the specified character. More...
 
static int GetDigitValue (const String &str, int index)
 Gets digit value of the character at the specified index of the string. More...
 
static double GetNumericValue (char16_t ch)
 Gets numeric value associated with the specified character. More...
 
static double GetNumericValue (const String &str, int index)
 Gets numeric value associated with the character at the specified index of the string. More...
 
static UnicodeCategory GetUnicodeCategory (char16_t ch)
 Gets unicode category of the character. More...
 
static UnicodeCategory GetUnicodeCategory (const String &str, int index)
 Gets unicode category of the character at the specified index of the string. More...
 

Detailed Description

Gets information about unicode character.

Member Function Documentation

◆ GetDecimalDigitValue() [1/2]

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