TextDirectionHeuristicCompat
public interface TextDirectionHeuristicCompat
Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.
Summary
Public methods |
|
|---|---|
abstract boolean |
isRtl(char[] array, int start, int count)Guess if a chars array is in the RTL direction or not. |
abstract boolean |
isRtl(CharSequence cs, int start, int count)Guess if a |
Public methods
isRtl
abstract boolean isRtl(char[] array, int start, int count)
Guess if a chars array is in the RTL direction or not.
| Parameters | |
|---|---|
char[] array |
the char array. |
int start |
start index, inclusive. |
int count |
the length to check, must not be negative and not greater than |
| Returns | |
|---|---|
boolean |
true if all chars in the range are to be considered in a RTL direction, false otherwise. |
isRtl
abstract boolean isRtl(CharSequence cs, int start, int count)
Guess if a CharSequence is in the RTL direction or not.
| Parameters | |
|---|---|
CharSequence cs |
the CharSequence. |
int start |
start index, inclusive. |
int count |
the length to check, must not be negative and not greater than |
| Returns | |
|---|---|
boolean |
true if all chars in the range are to be considered in a RTL direction, false otherwise. |