次の方法で共有


Locale.GetExtension(Char) Method

Definition

Returns the extension (or private use) value associated with the specified key, or null if there is no extension associated with the key.

[Android.Runtime.Register("getExtension", "(C)Ljava/lang/String;", "")]
public string? GetExtension (char key);
[<Android.Runtime.Register("getExtension", "(C)Ljava/lang/String;", "")>]
member this.GetExtension : char -> string

Parameters

key
Char

the extension key

Returns

The extension, or null if this locale defines no extension for the specified key.

Attributes

Remarks

Returns the extension (or private use) value associated with the specified key, or null if there is no extension associated with the key. To be well-formed, the key must be one of [0-9A-Za-z]. Keys are case-insensitive, so for example 'z' and 'Z' represent the same extension.

Added in 1.7.

Java documentation for java.util.Locale.getExtension(char).

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