Freigeben über


Collator.GetFunctionalEquivalent Method

Definition

Overloads

GetFunctionalEquivalent(String, ULocale, Boolean[])

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.

GetFunctionalEquivalent(String, ULocale)

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.

GetFunctionalEquivalent(String, ULocale, Boolean[])

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.

[Android.Runtime.Register("getFunctionalEquivalent", "(Ljava/lang/String;Landroid/icu/util/ULocale;[Z)Landroid/icu/util/ULocale;", "", ApiSince=24)]
public static Android.Icu.Util.ULocale? GetFunctionalEquivalent (string? keyword, Android.Icu.Util.ULocale? locID, bool[]? isAvailable);
[<Android.Runtime.Register("getFunctionalEquivalent", "(Ljava/lang/String;Landroid/icu/util/ULocale;[Z)Landroid/icu/util/ULocale;", "", ApiSince=24)>]
static member GetFunctionalEquivalent : string * Android.Icu.Util.ULocale * bool[] -> Android.Icu.Util.ULocale

Parameters

keyword
String

a particular keyword as enumerated by getKeywords.

locID
ULocale

The requested locale

isAvailable
Boolean[]

If non-null, isAvailable[0] will receive and output boolean that indicates whether the requested locale was 'available' to the collation service. If non-null, isAvailable must have length &gt;= 1.

Returns

the locale

Attributes

Remarks

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service. If two locales return the same result, then collators instantiated for these locales will behave equivalently. The converse is not always true; two collators may in fact be equivalent, but return different results, due to internal details. The return result has no other meaning than that stated above, and implies nothing as to the relationship between the two locales. This is intended for use by applications who wish to cache collators, or otherwise reuse collators when possible. The functional equivalent may change over time. For more information, please see the Locales and Services section of the ICU User Guide.

Java documentation for android.icu.text.Collator.getFunctionalEquivalent(java.lang.String, android.icu.util.ULocale, boolean[]).

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

GetFunctionalEquivalent(String, ULocale)

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.

[Android.Runtime.Register("getFunctionalEquivalent", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale;", "", ApiSince=24)]
public static Android.Icu.Util.ULocale? GetFunctionalEquivalent (string? keyword, Android.Icu.Util.ULocale? locID);
[<Android.Runtime.Register("getFunctionalEquivalent", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale;", "", ApiSince=24)>]
static member GetFunctionalEquivalent : string * Android.Icu.Util.ULocale -> Android.Icu.Util.ULocale

Parameters

keyword
String

a particular keyword as enumerated by getKeywords.

locID
ULocale

The requested locale

Returns

the locale

Attributes

Remarks

<strong>[icu]</strong> Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.

Java documentation for android.icu.text.Collator.getFunctionalEquivalent(java.lang.String, android.icu.util.ULocale).

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