|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.UnicodeChar
public final class UnicodeChar
Utility class for various Unicode-related character computations.
| Method Summary | |
|---|---|
static int |
firstPrintable(char[] inputChars)
Finds the first printable Unicode code point in a given array of chars. |
static int |
firstPrintable(CharSequence inputChars)
Finds the first printable Unicode code point in a given array of chars. |
static boolean |
isPrintable(int codePoint)
Indicates whether a given Unicode code point is printable. |
static boolean |
isValidUnparsedCodePoint(String unparsed)
Indicates whether a given string is a valid unparsed Unicode code point, that is, a string in the form "U+nnnn" where "nnnn" represents a string of 1 to 5 hex characters (0-9, a-z, A-Z). |
static int |
parseCodePoint(String unparsed)
Parses a Unicode codepoint from a given String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int firstPrintable(char[] inputChars)
inputChars - The array of chars to be checked.
WKConstants.INVALID_UNICODE_CHARACTER if there is no printable
code point.public static int firstPrintable(CharSequence inputChars)
inputChars - The array of chars to be checked.
WKConstants.INVALID_UNICODE_CHARACTER if there is no printable
code point.public static boolean isPrintable(int codePoint)
codePoint - The Unicode code point to be tested.
public static boolean isValidUnparsedCodePoint(String unparsed)
unparsed - The unparsed String to be tested.
unparsed is a valid Unicode value String.public static int parseCodePoint(String unparsed)
unparsed - The unparsed String, which must be in the form of
"U+nnnn", where "nnnn" is from 1 to 4 hex digits representing the
codepoint.
If not in the propert form, throws an IllegalArgumentException.
Use isValidUnparsedCodePoint(String) to test for this condition
first.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||