Freigeben über


DecimalFormat.ApplyLocalizedPattern(String) Method

Definition

Converts the given string to standard notation and then parses it using #applyPattern.

[Android.Runtime.Register("applyLocalizedPattern", "(Ljava/lang/String;)V", "GetApplyLocalizedPattern_Ljava_lang_String_Handler", ApiSince=24)]
public virtual void ApplyLocalizedPattern (string? localizedPattern);
[<Android.Runtime.Register("applyLocalizedPattern", "(Ljava/lang/String;)V", "GetApplyLocalizedPattern_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member ApplyLocalizedPattern : string -> unit
override this.ApplyLocalizedPattern : string -> unit

Parameters

localizedPattern
String

The pattern string in localized notation.

Attributes

Remarks

Converts the given string to standard notation and then parses it using #applyPattern. This method is provided for backwards compatibility and should not be used in new projects.

Localized notation means that instead of using generic placeholders in the pattern, you use the corresponding locale-specific characters instead. For example, in locale <em>fr-FR</em>, the period in the pattern "0.000" means "decimal" in standard notation (as it does in every other locale), but it means "grouping" in localized notation.

Java documentation for android.icu.text.DecimalFormat.applyLocalizedPattern(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