Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Globalization.​CharUnicodeInfo

Assembly: System.Runtime

Inheritance: object → CharUnicodeInfo

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

Methods

public static int
GetDecimalDigitValue​(char ch)
Gets the decimal digit value of the specified numeric character.
Returns The decimal digit value of the specified numeric character. -or- -1, if the specified character is not a decimal digit.
ch The Unicode character for which to get the decimal digit value.
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.
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.
s The <see cref="T:System.String" /> 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.
public static int
GetDigitValue​(char ch)
Gets the digit value of the specified numeric character.
Returns The digit value of the specified numeric character. -or- -1, if the specified character is not a digit.
ch The Unicode character for which to get the digit value.
public static int
GetDigitValue​(string s, int index)
Gets the digit value of the numeric character at the specified index of the specified string.
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.
s The <see cref="T:System.String" /> 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.
public static double
GetNumericValue​(char ch)
Gets the numeric value associated with the specified character.
Returns The numeric value associated with the specified character. -or- -1, if the specified character is not a numeric character.
ch The Unicode character for which to get the numeric value.
public static double
GetNumericValue​(string s, int index)
Gets the numeric value associated with the character at the specified index of the specified string.
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.
s The <see cref="T:System.String" /> 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.
public static UnicodeCategory
GetUnicodeCategory​(char ch)
Gets the Unicode category of the specified character.
Returns A <see cref="T:System.Globalization.UnicodeCategory" /> value indicating the category of the specified character.
ch The Unicode character for which to get the Unicode category.
public static UnicodeCategory
GetUnicodeCategory​(int codePoint)
Gets the Unicode category of the specified character.
Returns A <see cref="T:System.Globalization.UnicodeCategory" /> value indicating the category of the specified character.
codePoint A number representing the 32-bit code point value of the Unicode character.
public static UnicodeCategory
GetUnicodeCategory​(string s, int index)
Gets the Unicode category of the character at the specified index of the specified string.
Returns A <see cref="T:System.Globalization.UnicodeCategory" /> value indicating the category of the character at the specified index of the specified string.
s The <see cref="T:System.String" /> 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.
public bool
Equals​(object obj)
Inherited from object
Determines whether the specified object is equal to the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
obj The object to compare with the current object.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public int
GetHashCode​()
Inherited from object
Serves as the default hash function.
Returns A hash code for the current object.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns a string that represents the current object.
Returns A string that represents the current object.