共用方式為


UScript.GetCodeFromName(String) Method

Definition

Returns the script code associated with the given Unicode script property alias (name or abbreviation).

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

Parameters

nameOrAbbr
String

name of the script or ISO 15924 code

Returns

The script code value, or INVALID_CODE if the code cannot be found.

Attributes

Remarks

Returns the script code associated with the given Unicode script property alias (name or abbreviation). Short aliases are ISO 15924 script codes. Returns MALAYAM given "Malayam" OR "Mlym".

Java documentation for android.icu.lang.UScript.getCodeFromName(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