Język

ULocale.GetVariant(String) Method

Definition

<strong>[icu]</strong> Returns the variant code for the specified locale, which might be the empty string.

[Android.Runtime.Register("getVariant", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetVariant(string? localeID);
[<Android.Runtime.Register("getVariant", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member GetVariant : string -> string

Parameters

localeID
String

The locale identifier to examine.

Returns

The variant component of the locale identifier, or an empty string if none is present.

Attributes

Remarks

<strong>[icu]</strong> Returns the variant code for the specified locale, which might be the empty string.

Java documentation for android.icu.util.ULocale.getVariant(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