TextDirectionHeuristicCompat
interface TextDirectionHeuristicCompat
Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.
Summary
Public functions |
|
|---|---|
Boolean |
Guess if a chars array is in the RTL direction or not. |
Boolean |
isRtl(cs: CharSequence!, start: Int, count: Int)Guess if a |
Public functions
isRtl
fun isRtl(array: CharArray<Char>!, start: Int, count: Int): Boolean
Guess if a chars array is in the RTL direction or not.
| Parameters | |
|---|---|
array: CharArray<Char>! |
the char array. |
start: Int |
start index, inclusive. |
count: Int |
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
fun isRtl(cs: CharSequence!, start: Int, count: Int): Boolean
Guess if a CharSequence is in the RTL direction or not.
| Parameters | |
|---|---|
cs: CharSequence! |
the CharSequence. |
start: Int |
start index, inclusive. |
count: Int |
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. |