Transliterator.CreateFromRules(String, String, DirectionOptions) Method

Definition

Returns a Transliterator object constructed from the given rule string.

[Android.Runtime.Register("createFromRules", "(Ljava/lang/String;Ljava/lang/String;I)Landroid/icu/text/Transliterator;", "", ApiSince=29)]
public static Android.Icu.Text.Transliterator? CreateFromRules (string? ID, string? rules, Android.Icu.Text.DirectionOptions dir);
[<Android.Runtime.Register("createFromRules", "(Ljava/lang/String;Ljava/lang/String;I)Landroid/icu/text/Transliterator;", "", ApiSince=29)>]
static member CreateFromRules : string * string * Android.Icu.Text.DirectionOptions -> Android.Icu.Text.Transliterator

Parameters

ID
String

the id for the transliterator.

rules
String

rules, separated by ';'

dir
DirectionOptions

either FORWARD or REVERSE.

Returns

a newly created Transliterator

Attributes

Remarks

Returns a Transliterator object constructed from the given rule string. This will be a rule-based Transliterator, if the rule string contains only rules, or a compound Transliterator, if it contains ID blocks, or a null Transliterator, if it contains ID blocks which parse as empty for the given direction.

Java documentation for android.icu.text.Transliterator.createFromRules(java.lang.String, java.lang.String, int).

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