FileDocCategorySizeDatePackage
TextDirectionHeuristic.javaAPI DocAndroid 5.1 API1762Thu Mar 12 22:22:10 GMT 2015android.text

TextDirectionHeuristic

public interface TextDirectionHeuristic
Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.

Fields Summary
Constructors Summary
Methods Summary
public booleanisRtl(char[] array, int start, int count)
Guess if a chars array is in the RTL direction or not.

param
array the char array.
param
start start index, inclusive.
param
count the length to check, must not be negative and not greater than {@code array.length - start}.
return
true if all chars in the range are to be considered in a RTL direction, false otherwise.

public booleanisRtl(java.lang.CharSequence cs, int start, int count)
Guess if a {@code CharSequence} is in the RTL direction or not.

param
cs the CharSequence.
param
start start index, inclusive.
param
count the length to check, must not be negative and not greater than {@code CharSequence.length() - start}.
return
true if all chars in the range are to be considered in a RTL direction, false otherwise.