ULocale.ToLegacyKey(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu]</strong> Converts the specified keyword (BCP 47 Unicode locale extension key, or legacy key) to the legacy key.
[Android.Runtime.Register("toLegacyKey", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToLegacyKey (string? keyword);
[<Android.Runtime.Register("toLegacyKey", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToLegacyKey : string -> string
Parameters
- keyword
- String
the input locale keyword (either BCP 47 Unicode locale extension key or legacy key).
Returns
the well-formed legacy key, or null if the specified keyword cannot be mapped to a well-formed legacy key.
- Attributes
Remarks
<strong>[icu]</strong> Converts the specified keyword (BCP 47 Unicode locale extension key, or legacy key) to the legacy key. For example, legacy key "collation" is returned for the input BCP 47 Unicode locale extension key "co".
Java documentation for android.icu.util.ULocale.toLegacyKey(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.