TextDirectionHeuristicCompat

Added in 1.1.0

interface TextDirectionHeuristicCompat


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

Summary

Public functions

Boolean
isRtl(array: CharArray!, start: Int, count: Int)

Guess if a chars array is in the RTL direction or not.

Boolean
isRtl(cs: CharSequence!, start: Int, count: Int)

Guess if a CharSequence is in the RTL direction or not.

Public functions

isRtl

Added in 1.1.0
fun isRtl(array: CharArray!, start: Int, count: Int): Boolean

Guess if a chars array is in the RTL direction or not.

Parameters
array: CharArray!

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.

isRtl

Added in 1.1.0
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 CharSequence.length() - start.

Returns
Boolean

true if all chars in the range are to be considered in a RTL direction, false otherwise.