public interface TextDirectionHeuristic
android.text.TextDirectionHeuristic |
使用启发式的对象的接口,通过检查文本来在段落方向上进行猜测。
Public methods |
|
---|---|
abstract boolean |
isRtl(char[] array, int start, int count) 猜猜一个字符数组是否在RTL方向上。 |
abstract boolean |
isRtl(CharSequence cs, int start, int count) 猜测 |
boolean isRtl (char[] array, int start, int count)
猜猜一个字符数组是否在RTL方向上。
Parameters | |
---|---|
array |
char : the char array. |
start |
int : start index, inclusive. |
count |
int : the length to check, must not be negative and not greater than array.length - start . |
Returns | |
---|---|
boolean |
true if all chars in the range are to be considered in a RTL direction, false otherwise. |
boolean isRtl (CharSequence cs, int start, int count)
猜测 CharSequence
是否处于RTL方向。
Parameters | |
---|---|
cs |
CharSequence : the CharSequence. |
start |
int : start index, inclusive. |
count |
int : the length to check, must not be negative and not greater than CharSequence.length() - start . |
Returns | |
---|---|
boolean |
true if all chars in the range are to be considered in a RTL direction, false otherwise. |