org.geotools.resources
Class CharUtilities

java.lang.Object
  extended byorg.geotools.resources.CharUtilities

public final class CharUtilities
extends java.lang.Object

A set of utilities for characters handling.

Since:
2.1
Version:
$Id: CharUtilities.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
static boolean isSubScript(char c)
          Determines whether the character is a subscript.
static boolean isSuperScript(char c)
          Determines whether the character is a superscript.
static char toNormalScript(char c)
          Converts the character argument to normal script.
static char toSubScript(char c)
          Converts the character argument to subscript.
static char toSuperScript(char c)
          Converts the character argument to superscript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSuperScript

public static boolean isSuperScript(char c)
Determines whether the character is a superscript. Most superscripts have unicode values from \\u2070 to \\u207F inclusive. Superscripts are the following symbols:
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


isSubScript

public static boolean isSubScript(char c)
Determines whether the character is a subscript. Most subscripts have unicode values from \\u2080 to \\u208E inclusive. Subscripts are the following symbols:
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


toSuperScript

public static char toSuperScript(char c)
Converts the character argument to superscript. Only the following characters can be converted (other characters are left unchanged):
 0 1 2 3 4 5 6 7 8 9 + - = ( ) n
 


toSubScript

public static char toSubScript(char c)
Converts the character argument to subscript. Only the following characters can be converted (other characters are left unchanged):
 0 1 2 3 4 5 6 7 8 9 + - = ( ) n
 


toNormalScript

public static char toNormalScript(char c)
Converts the character argument to normal script.



Copyright © GeoTools. All Rights Reserved.