Language

UnicodeSet.ToPattern(Boolean) Method

Definition

Returns a string representation of this set.

[Android.Runtime.Register("toPattern", "(Z)Ljava/lang/String;", "GetToPattern_ZHandler", ApiSince=24)]
public override string? ToPattern(bool escapeUnprintable);
[<Android.Runtime.Register("toPattern", "(Z)Ljava/lang/String;", "GetToPattern_ZHandler", ApiSince=24)>]
override this.ToPattern : bool -> string

Parameters

escapeUnprintable
Boolean

Whether unprintable code points are written as escapes in the returned set pattern.

Returns

A Unicode-set pattern representing the current code-point and string contents.

Attributes

Remarks

Returns a string representation of this set. If the result of calling this function is passed to a UnicodeSet constructor, it will produce another set that is equal to this one.

Java documentation for android.icu.text.UnicodeSet.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