net.rim.device.api.util
Class CharacterUtilities

java.lang.Object
  |
  +--net.rim.device.api.util.CharacterUtilities

public final class CharacterUtilities
extends Object

Retreives Unicode attributes for characters.

Since:
JDE 3.6.0

Method Summary
static char getOriginal(char ch)
          Gets the firstmost character in a decomposion, recursively.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOriginal

public static char getOriginal(char ch)
Gets the firstmost character in a decomposion, recursively.

You can use this method for stripping accents off characters. For example, U+00E9 would return U+0065. U+1EDA would return U+004F.

Parameters:
ch - Character to use as source.
Returns:
Firstmost character from provided, composed character.
Since:
JDE 3.7.0


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.