Language

MessagePattern.ApostropheMode.DoubleOptional Property

Definition

A literal apostrophe is represented by either a single or a double apostrophe pattern character.

[Android.Runtime.Register("DOUBLE_OPTIONAL", ApiSince=24)]
public static Android.Icu.Text.MessagePattern.ApostropheMode? DoubleOptional { get; }
[<Android.Runtime.Register("DOUBLE_OPTIONAL", ApiSince=24)>]
static member DoubleOptional : Android.Icu.Text.MessagePattern.ApostropheMode

Property Value

The mode in which a single apostrophe starts quoting only before a message syntax character; doubled apostrophes still represent one literal apostrophe.

Attributes

Remarks

A literal apostrophe is represented by either a single or a double apostrophe pattern character. Within a MessageFormat pattern, a single apostrophe only starts quoted literal text if it immediately precedes a curly brace {}, or a pipe symbol | if inside a choice format, or a pound symbol # if inside a plural format.

This is the default behavior starting with ICU 4.8.

Android reference for android.icu.text.MessagePattern.ApostropheMode.DOUBLE_OPTIONAL.

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