다음을 통해 공유


IUnicodeMatcher.ToPattern(Boolean) Method

Definition

Returns a string representation of this matcher.

[Android.Runtime.Register("toPattern", "(Z)Ljava/lang/String;", "GetToPattern_ZHandler:Android.Icu.Text.IUnicodeMatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public string? ToPattern (bool escapeUnprintable);
[<Android.Runtime.Register("toPattern", "(Z)Ljava/lang/String;", "GetToPattern_ZHandler:Android.Icu.Text.IUnicodeMatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member ToPattern : bool -> string

Parameters

escapeUnprintable
Boolean

if true then convert unprintable character to their hex escape representations, \uxxxx or \Uxxxxxxxx. Unprintable characters are those other than U+000A, U+0020..U+007E.

Returns

Attributes

Remarks

Returns a string representation of this matcher. If the result of calling this function is passed to the appropriate parser, it will produce another matcher that is equal to this one.

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