UCharacter.GetHanNumericValue(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu]</strong> Returns the numeric value of a Han character.
[Android.Runtime.Register("getHanNumericValue", "(I)I", "", ApiSince=24)]
public static int GetHanNumericValue (int ch);
[<Android.Runtime.Register("getHanNumericValue", "(I)I", "", ApiSince=24)>]
static member GetHanNumericValue : int -> int
Parameters
- ch
- Int32
code point to query
Returns
value if it is a Han 'numeric character,' otherwise return -1.
- Attributes
Remarks
<strong>[icu]</strong> Returns the numeric value of a Han character.
This returns the value of Han 'numeric' code points, including those for zero, ten, hundred, thousand, ten thousand, and hundred million. This includes both the standard and 'checkwriting' characters, the 'big circle' zero character, and the standard zero character.
Note: The Unicode Standard has numeric values for more Han characters recognized by this method (see #getNumericValue(int)
and the UCD file DerivedNumericValues.txt), and a android.icu.text.NumberFormat
can be used with a Chinese android.icu.text.NumberingSystem
.
Java documentation for android.icu.lang.UCharacter.getHanNumericValue(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.