Udostępnij za pośrednictwem


MessagePattern.AutoQuoteApostropheDeep Method

Definition

Returns a version of the parsed pattern string where each ASCII apostrophe is doubled (escaped) if it is not already, and if it is not interpreted as quoting syntax.

[Android.Runtime.Register("autoQuoteApostropheDeep", "()Ljava/lang/String;", "", ApiSince=24)]
public string? AutoQuoteApostropheDeep ();
[<Android.Runtime.Register("autoQuoteApostropheDeep", "()Ljava/lang/String;", "", ApiSince=24)>]
member this.AutoQuoteApostropheDeep : unit -> string

Returns

the deep-auto-quoted version of the parsed pattern string.

Attributes

Remarks

Returns a version of the parsed pattern string where each ASCII apostrophe is doubled (escaped) if it is not already, and if it is not interpreted as quoting syntax.

For example, this turns "I don't '{know}' {gender,select,female{h''er}other{h'im}}." into "I don''t '{know}' {gender,select,female{h''er}other{h''im}}."

Java documentation for android.icu.text.MessagePattern.autoQuoteApostropheDeep().

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