Transliterator.TargetSet Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the set of all characters that may be generated as replacement text by this transliterator.
public virtual Android.Icu.Text.UnicodeSet? TargetSet { [Android.Runtime.Register("getTargetSet", "()Landroid/icu/text/UnicodeSet;", "GetGetTargetSetHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getTargetSet", "()Landroid/icu/text/UnicodeSet;", "GetGetTargetSetHandler", ApiSince=29)>]
member this.TargetSet : Android.Icu.Text.UnicodeSet
Property Value
- Attributes
Remarks
Returns the set of all characters that may be generated as replacement text by this transliterator. The default implementation returns the empty set. Some subclasses may override this method to return a more precise result. The return result is approximate in any case and is intended for use by tests, tools, or utilities requiring such meta-information.
Warning. You might expect an empty filter to always produce an empty target. However, consider the following:
[Pp]{}[\u03A3\u03C2\u03C3\u03F7\u03F8\u03FA\u03FB] > \';
With a filter of [], you still get some elements in the target set, because this rule will still match. It could be recast to the following if it were important.
[Pp]{([\u03A3\u03C2\u03C3\u03F7\u03F8\u03FA\u03FB])} > \' | $1;
Java documentation for android.icu.text.Transliterator.getTargetSet()
.
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.