| |
|
| java.lang.Object org.geotools.resources.CharUtilities
CharUtilities | final public class CharUtilities (Code) | | A set of utilities for characters handling.
since: 2.1 version: $Id: CharUtilities.java 22443 2006-10-27 20:47:22Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public static boolean | isSubScript(char c) Determines whether the character is a subscript. | public static boolean | isSuperScript(char c) Determines whether the character is a superscript. | public static char | toNormalScript(char c) Converts the character argument to normal script. | public static char | toSubScript(char c) Converts the character argument to subscript. | public static char | toSuperScript(char c) Converts the character argument to superscript. |
isSubScript | public static boolean isSubScript(char c)(Code) | | Determines whether the character is a subscript. Most subscripts have
unicode values from \\u2080 to \\u208E inclusive. Subscripts are the
following symbols:
\u2080 \u2081 \u2082 \u2083 \u2084 \u2085 \u2086 \u2087
\u2088 \u2089 \u208A \u208B \u208C \u208D \u208E
|
isSuperScript | public static boolean isSuperScript(char c)(Code) | | Determines whether the character is a superscript. Most superscripts have
unicode values from \\u2070 to \\u207F inclusive. Superscripts are the
following symbols:
\u2070 \u00B9 \u00B2 \u00B3 \u2074 \u2075 \u2076 \u2077
\u2078 \u2079 \u207A \u207B \u207C \u207D \u207E \u207F
|
toNormalScript | public static char toNormalScript(char c)(Code) | | Converts the character argument to normal script.
|
toSubScript | public static char toSubScript(char c)(Code) | | 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
|
toSuperScript | public static char toSuperScript(char c)(Code) | | 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
|
|
|
|