class CharUnicodeInfo

in global :: System . Globalization

Retrieves information about a Unicode character. This class cannot be inherited.


public static int GetDecimalDigitValue( char ch )

Gets the decimal digit value of the specified numeric character.

  • ch The Unicode character for which to get the decimal digit value.
  • Returns The decimal digit value of the specified numeric character. -or- -1, if the specified character is not a decimal digit.

public static int GetDecimalDigitValue( string s, int index )

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

  • s The containing the Unicode character for which to get the decimal digit value.
  • index The index of the Unicode character for which to get the decimal digit value.
  • Returns The decimal digit value of the numeric character at the specified index of the specified string. -or- -1, if the character at the specified index of the specified string is not a decimal digit.

public static int GetDigitValue( char ch )

Gets the digit value of the specified numeric character.

  • ch The Unicode character for which to get the digit value.
  • Returns The digit value of the specified numeric character. -or- -1, if the specified character is not a digit.

public static int GetDigitValue( string s, int index )

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

  • s The containing the Unicode character for which to get the digit value.
  • index The index of the Unicode character for which to get the digit value.
  • Returns The digit value of the numeric character at the specified index of the specified string. -or- -1, if the character at the specified index of the specified string is not a digit.

public static double GetNumericValue( char ch )

Gets the numeric value associated with the specified character.

  • ch The Unicode character for which to get the numeric value.
  • Returns The numeric value associated with the specified character. -or- -1, if the specified character is not a numeric character.

public static double GetNumericValue( string s, int index )

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

  • s The containing the Unicode character for which to get the numeric value.
  • index The index of the Unicode character for which to get the numeric value.
  • Returns The numeric value associated with the character at the specified index of the specified string. -or- -1, if the character at the specified index of the specified string is not a numeric character.

public static UnicodeCategory GetUnicodeCategory( char ch )

Gets the Unicode category of the specified character.

  • ch The Unicode character for which to get the Unicode category.
  • Returns A value indicating the category of the specified character.

public static UnicodeCategory GetUnicodeCategory( int codePoint )

No summary.

public static UnicodeCategory GetUnicodeCategory( string s, int index )

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

  • s The containing the Unicode character for which to get the Unicode category.
  • index The index of the Unicode character for which to get the Unicode category.
  • Returns A value indicating the category of the character at the specified index of the specified string.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.