|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectStatic
Characters
public final class Characters
A set of utilities for characters handling.
| utility/geotk-utility (download) | View source code for this class |
| 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 Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isSuperScript(char c)
⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷
⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ
c - The character to test.
true if the given character is a superscript.public static boolean isSubScript(char c)
₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇
₈ ₉ ₊ ₋ ₌ ₍ ₎
c - The character to test.
true if the given character is a subscript.public static char toSuperScript(char c)
0 1 2 3 4 5 6 7 8 9 + - = ( ) n
c - The character to convert.
c if the
given character was not a digit.public static char toSubScript(char c)
0 1 2 3 4 5 6 7 8 9 + - = ( ) n
c - The character to convert.
c if the
given character was not a digit.public static char toNormalScript(char c)
c - The character to convert.
c if the
given character was not a superscript or a subscript.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||