TextUtilsCompat

Added in 1.1.0

class TextUtilsCompat


Backwards compatible version of TextUtils.

Summary

Public functions

java-static Int

Returns the layout direction for a given Locale

java-static String

Html-encode the string.

Public functions

getLayoutDirectionFromLocale

Added in 1.1.0
java-static fun getLayoutDirectionFromLocale(locale: Locale?): Int

Returns the layout direction for a given Locale

Parameters
locale: Locale?

the Locale for which we want the layout direction, maybe be null.

Returns
Int

the layout direction, either LAYOUT_DIRECTION_LTR or LAYOUT_DIRECTION_RTL.

htmlEncode

Added in 1.1.0
java-static fun htmlEncode(s: String): String

Html-encode the string.

Parameters
s: String

the string to be encoded

Returns
String

the encoded string