Language

Transliterator.Transliterate Method

Definition

Overloads

Name Description
Transliterate(IReplaceable, Transliterator+Position, Int32)

Transliterates the portion of the text buffer that can be transliterated unambiguously after a new character has been inserted, typically as a result of a keyboard event.

Transliterate(IReplaceable, Transliterator+Position)

Transliterates the portion of the text buffer that can be transliterated unambiguously.

Transliterate(IReplaceable, Transliterator+Position, String)

Transliterates the portion of the text buffer that can be transliterated unambiguously after new text has been inserted, typically as a result of a keyboard event.

Transliterate(IReplaceable)

Transliterates an entire string in place.

Transliterate(String)

Transliterate an entire string and returns the result.

Transliterate(IReplaceable, Int32, Int32)

Transliterates a segment of a string, with optional filtering.

Transliterate(IReplaceable, Transliterator+Position, Int32)

Transliterates the portion of the text buffer that can be transliterated unambiguously after a new character has been inserted, typically as a result of a keyboard event.

[Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;I)V", "", ApiSince=29)]
public void Transliterate(Android.Icu.Text.IReplaceable? text, Android.Icu.Text.Transliterator.Position? index, int insertion);
[<Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;I)V", "", ApiSince=29)>]
member this.Transliterate : Android.Icu.Text.IReplaceable * Android.Icu.Text.Transliterator.Position * int -> unit

Parameters

text
IReplaceable

the buffer holding transliterated and untransliterated text

index
Transliterator.Position

the start and limit of the text, the position of the cursor, and the start and limit of transliteration.

insertion
Int32

text to be inserted and possibly transliterated into the translation buffer at index.contextLimit.

Attributes

Remarks

Transliterates the portion of the text buffer that can be transliterated unambiguously after a new character has been inserted, typically as a result of a keyboard event. This is a convenience method; see transliterate(Replaceable,Transliterator.Position,String) for details.

Android reference for android.icu.text.Transliterator.transliterate.

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

Transliterate(IReplaceable, Transliterator+Position)

Transliterates the portion of the text buffer that can be transliterated unambiguously.

[Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;)V", "", ApiSince=29)]
public void Transliterate(Android.Icu.Text.IReplaceable? text, Android.Icu.Text.Transliterator.Position? index);
[<Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;)V", "", ApiSince=29)>]
member this.Transliterate : Android.Icu.Text.IReplaceable * Android.Icu.Text.Transliterator.Position -> unit

Parameters

text
IReplaceable

the buffer holding transliterated and untransliterated text

index
Transliterator.Position

the start and limit of the text, the position of the cursor, and the start and limit of transliteration.

Attributes

Remarks

Transliterates the portion of the text buffer that can be transliterated unambiguously. This is a convenience method; see transliterate(Replaceable,Transliterator.Position,String) for details.

Android reference for android.icu.text.Transliterator.transliterate.

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

Transliterate(IReplaceable, Transliterator+Position, String)

Transliterates the portion of the text buffer that can be transliterated unambiguously after new text has been inserted, typically as a result of a keyboard event.

[Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;Ljava/lang/String;)V", "", ApiSince=29)]
public void Transliterate(Android.Icu.Text.IReplaceable? text, Android.Icu.Text.Transliterator.Position? index, string? insertion);
[<Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;Landroid/icu/text/Transliterator$Position;Ljava/lang/String;)V", "", ApiSince=29)>]
member this.Transliterate : Android.Icu.Text.IReplaceable * Android.Icu.Text.Transliterator.Position * string -> unit

Parameters

text
IReplaceable

the buffer holding transliterated and untransliterated text

index
Transliterator.Position

the start and limit of the text, the position of the cursor, and the start and limit of transliteration.

insertion
String

text to be inserted and possibly transliterated into the translation buffer at index.contextLimit. If null then no text is inserted.

Attributes

Remarks

Transliterates the portion of the text buffer that can be transliterated unambiguosly after new text has been inserted, typically as a result of a keyboard event. The new text in insertion will be inserted into text at index.contextLimit, advancing index.contextLimit by insertion.length(). Then the transliterator will try to transliterate characters of text between index.start and index.contextLimit. Characters before index.start will not be changed.

Upon return, values in index will be updated. index.contextStart will be advanced to the first character that future calls to this method will read. index.start and index.contextLimit will be adjusted to delimit the range of text that future calls to this method may change.

Typical usage of this method begins with an initial call with index.contextStart and index.contextLimit set to indicate the portion of text to be transliterated, and index.start == index.contextStart. Thereafter, index can be used without modification in future calls, provided that all changes to text are made via this method.

This method assumes that future calls may be made that will insert new text into the buffer. As a result, it only performs unambiguous transliterations. After the last call to this method, there may be untransliterated text that is waiting for more input to resolve an ambiguity. In order to perform these pending transliterations, clients should call finishTransliteration(Replaceable, Position) after the last call to this method has been made.

Android reference for android.icu.text.Transliterator.transliterate.

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

Transliterate(IReplaceable)

Transliterates an entire string in place.

[Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;)V", "", ApiSince=29)]
public void Transliterate(Android.Icu.Text.IReplaceable? text);
[<Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;)V", "", ApiSince=29)>]
member this.Transliterate : Android.Icu.Text.IReplaceable -> unit

Parameters

text
IReplaceable

the string to be transliterated

Attributes

Remarks

Transliterates an entire string in place. Convenience method.

Java documentation for android.icu.text.Transliterator.transliterate(android.icu.text.Replaceable).

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

Transliterate(String)

Transliterate an entire string and returns the result.

[Android.Runtime.Register("transliterate", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)]
public string? Transliterate(string? text);
[<Android.Runtime.Register("transliterate", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)>]
member this.Transliterate : string -> string

Parameters

text
String

the string to be transliterated

Returns

The transliterated text

Attributes

Remarks

Transliterate an entire string and returns the result. Convenience method.

Java documentation for android.icu.text.Transliterator.transliterate(java.lang.String).

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

Transliterate(IReplaceable, Int32, Int32)

Transliterates a segment of a string, with optional filtering.

[Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;II)I", "", ApiSince=29)]
public int Transliterate(Android.Icu.Text.IReplaceable? text, int start, int limit);
[<Android.Runtime.Register("transliterate", "(Landroid/icu/text/Replaceable;II)I", "", ApiSince=29)>]
member this.Transliterate : Android.Icu.Text.IReplaceable * int * int -> int

Parameters

text
IReplaceable

the string to be transliterated

start
Int32

the beginning index, inclusive; 0 &lt;= start &lt;= limit.

limit
Int32

the ending index, exclusive; start &lt;= limit &lt;= text.length().

Returns

The new limit index. The text previously occupying [start, limit) has been transliterated, possibly to a string of a different length, at [start, <em>new-limit</em>), where <em>new-limit</em> is the return value. If the input offsets are out of bounds, the returned value is -1 and the input string remains unchanged.

Attributes

Remarks

Transliterates a segment of a string, with optional filtering.

Java documentation for android.icu.text.Transliterator.transliterate(android.icu.text.Replaceable, int, 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