Partager via


UCharacter.GetCharFromExtendedName(String) Method

Definition

<strong>[icu]</strong>

[Android.Runtime.Register("getCharFromExtendedName", "(Ljava/lang/String;)I", "", ApiSince=24)]
public static int GetCharFromExtendedName (string? name);
[<Android.Runtime.Register("getCharFromExtendedName", "(Ljava/lang/String;)I", "", ApiSince=24)>]
static member GetCharFromExtendedName : string -> int

Parameters

name
String

codepoint name

Returns

code point associated with the name or -1 if the name is not found.

Attributes

Remarks

<strong>[icu]</strong>

Find a Unicode character by either its name and return its code point value. All Unicode names are in uppercase. Extended names are all lowercase except for numbers and are contained within angle brackets. The names are searched in the following order <ul> <li> Most current Unicode name if there is any <li> Unicode 1.0 name if there is any <li> Extended name in the form of "&lt;codepoint_type-codepoint_hex_digits&gt;". E.g. &lt;noncharacter-FFFE&gt; </ul> Note calling any methods related to code point names, e.g. getName() incurs a one-time initialization cost to construct the name tables.

Java documentation for android.icu.lang.UCharacter.getCharFromExtendedName(java.lang.String).

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.

Applies to