android.support.v4.text
Class TextUtilsCompat

java.lang.Object
  extended by android.support.v4.text.TextUtilsCompat

public class TextUtilsCompat
extends java.lang.Object


Field Summary
static java.util.Locale ROOT
           
 
Constructor Summary
TextUtilsCompat()
           
 
Method Summary
static int getLayoutDirectionFromLocale(java.util.Locale locale)
          Return the layout direction for a given Locale
static java.lang.String htmlEncode(java.lang.String s)
          Html-encode the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT

public static final java.util.Locale ROOT
Constructor Detail

TextUtilsCompat

public TextUtilsCompat()
Method Detail

htmlEncode

public static java.lang.String htmlEncode(java.lang.String s)
Html-encode the string.

Parameters:
s - the string to be encoded
Returns:
the encoded string

getLayoutDirectionFromLocale

public static int getLayoutDirectionFromLocale(java.util.Locale locale)
Return the layout direction for a given Locale

Parameters:
locale - the Locale for which we want the layout direction. Can be null.
Returns:
the layout direction. This may be one of: ViewCompat.LAYOUT_DIRECTION_LTR or ViewCompat.LAYOUT_DIRECTION_RTL. Be careful: this code will need to be updated when vertical scripts will be supported