Compartilhar via


Bidi.RequiresBidi(Char[], Int32, Int32) Method

Definition

Return true if the specified text requires bidi analysis.

[Android.Runtime.Register("requiresBidi", "([CII)Z", "")]
public static bool RequiresBidi (char[]? text, int start, int limit);
[<Android.Runtime.Register("requiresBidi", "([CII)Z", "")>]
static member RequiresBidi : char[] * int * int -> bool

Parameters

text
Char[]

the text containing the characters to test

start
Int32

the start of the range of characters to test

limit
Int32

the limit of the range of characters to test

Returns

true if the range of characters requires bidi analysis

Attributes

Exceptions

if start or limit is negative; start > limit or limit is greater than the length of this object's paragraph text.

Remarks

Return true if the specified text requires bidi analysis. If this returns false, the text will display left-to-right. Clients can then avoid constructing a Bidi object. Text in the Arabic Presentation Forms area of Unicode is presumed to already be shaped and ordered for display, and so will not cause this function to return true.

Java documentation for java.text.Bidi.requiresBidi(char[], 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