Build 1.0_r1(from source)

android.text
Class AndroidCharacter

java.lang.Object
  extended by android.text.AndroidCharacter

public class AndroidCharacter
extends Object

AndroidCharacter exposes some character properties that are not easily accessed from java.lang.Character.


Constructor Summary
AndroidCharacter()
           
 
Method Summary
static void getDirectionalities(char[] src, byte[] dest, int count)
          Fill in the first count bytes of dest with the directionalities from the first count chars of src.
static char getMirror(char ch)
          Return the right-to-left mirror (or the original char if none) of the specified char.
static boolean mirror(char[] text, int start, int count)
          Replace the specified slice of text with the chars' right-to-left mirrors (if any), returning true if any replacements were made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidCharacter

public AndroidCharacter()
Method Detail

getDirectionalities

public static void getDirectionalities(char[] src,
                                       byte[] dest,
                                       int count)
Fill in the first count bytes of dest with the directionalities from the first count chars of src. This is just like Character.getDirectionality() except it is a batch operation.


mirror

public static boolean mirror(char[] text,
                             int start,
                             int count)
Replace the specified slice of text with the chars' right-to-left mirrors (if any), returning true if any replacements were made.


getMirror

public static char getMirror(char ch)
Return the right-to-left mirror (or the original char if none) of the specified char.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature