Share via


Transliterator.MaximumContextLength Property

Definition

Returns the length of the longest context required by this transliterator.

public int MaximumContextLength { [Android.Runtime.Register("getMaximumContextLength", "()I", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getMaximumContextLength", "()I", "", ApiSince=29)>]
member this.MaximumContextLength : int

Property Value

The maximum number of preceding context characters this transliterator needs to examine

Attributes

Remarks

Returns the length of the longest context required by this transliterator. This is <em>preceding</em> context. The default value is zero, but subclasses can change this by calling setMaximumContextLength(). For example, if a transliterator translates "ddd" (where d is any digit) to "555" when preceded by "(ddd)", then the preceding context length is 5, the length of "(ddd)".

Java documentation for android.icu.text.Transliterator.getMaximumContextLength().

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