|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.lang.CharacterHelper
public class CharacterHelper
Field Summary | |
---|---|
static byte |
COMBINING_SPACING_MARK
Unicode category constant Mc. |
static byte |
CONNECTOR_PUNCTUATION
Unicode category constant Pc. |
static byte |
CONTROL
Unicode category constant Cc. |
static byte |
CURRENCY_SYMBOL
Unicode category constant Sc. |
static byte |
DASH_PUNCTUATION
Unicode category constant Pd. |
static byte |
DECIMAL_DIGIT_NUMBER
Unicode category constant Nd. |
static byte |
DIRECTIONALITY_ARABIC_NUMBER
Unicode bidirectional constant AN. |
static byte |
DIRECTIONALITY_BOUNDARY_NEUTRAL
Unicode bidirectional constant BN. |
static byte |
DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
Unicode bidirectional constant CS. |
static byte |
DIRECTIONALITY_EUROPEAN_NUMBER
Unicode bidirectional constant EN. |
static byte |
DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
Unicode bidirectional constant ES. |
static byte |
DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
Unicode bidirectional constant ET. |
static byte |
DIRECTIONALITY_LEFT_TO_RIGHT
Unicode bidirectional constant L. |
static byte |
DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
Unicode bidirectional constant LRE. |
static byte |
DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
Unicode bidirectional constant LRO. |
static byte |
DIRECTIONALITY_NONSPACING_MARK
Unicode bidirectional constant NSM. |
static byte |
DIRECTIONALITY_OTHER_NEUTRALS
Unicode bidirectional constant ON. |
static byte |
DIRECTIONALITY_PARAGRAPH_SEPARATOR
Unicode bidirectional constant B. |
static byte |
DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
Unicode bidirectional constant PDF. |
static byte |
DIRECTIONALITY_RIGHT_TO_LEFT
Unicode bidirectional constant R. |
static byte |
DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
Unicode bidirectional constant AL. |
static byte |
DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
Unicode bidirectional constant RLE. |
static byte |
DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
Unicode bidirectional constant RLO. |
static byte |
DIRECTIONALITY_SEGMENT_SEPARATOR
Unicode bidirectional constant S. |
static byte |
DIRECTIONALITY_UNDEFINED
Unicode bidirectional constant. |
static byte |
DIRECTIONALITY_WHITESPACE
Unicode bidirectional constant WS. |
static byte |
ENCLOSING_MARK
Unicode category constant Me. |
static byte |
END_PUNCTUATION
Unicode category constant Pe. |
static byte |
FINAL_QUOTE_PUNCTUATION
Unicode category constant Pf. |
static byte |
FORMAT
Unicode category constant Cf. |
static byte |
INITIAL_QUOTE_PUNCTUATION
Unicode category constant Pi. |
static byte |
LETTER_NUMBER
Unicode category constant Nl. |
static byte |
LINE_SEPARATOR
Unicode category constant Zl. |
static byte |
LOWERCASE_LETTER
Unicode category constant Ll. |
static byte |
MATH_SYMBOL
Unicode category constant Sm. |
static int |
MAX_CODE_POINT
Maximum code point value - U+10FFFF . |
static char |
MAX_HIGH_SURROGATE
Maximum value of a high surrogate or leading surrogate unit in UTF-16 encoding - '\uDBFF' . |
static char |
MAX_LOW_SURROGATE
Maximum value of a low surrogate or trailing surrogate unit in UTF-16 encoding - '\uDFFF' . |
static int |
MAX_RADIX
The maximum possible radix used for conversions between Characters and integers. |
static char |
MAX_SURROGATE
Maximum value of a surrogate unit in UTF-16 encoding - '\uDFFF' . |
static char |
MAX_VALUE
The maximum possible Character value. |
static int |
MIN_CODE_POINT
Minimum code point value - U+0000 . |
static char |
MIN_HIGH_SURROGATE
Minimum value of a high surrogate or leading surrogate unit in UTF-16 encoding - '\uD800' . |
static char |
MIN_LOW_SURROGATE
Minimum value of a low surrogate or trailing surrogate unit in UTF-16 encoding - '\uDC00' . |
static int |
MIN_RADIX
The minimum possible radix used for conversions between Characters and integers. |
static int |
MIN_SUPPLEMENTARY_CODE_POINT
Minimum value of a supplementary code point - U+010000 . |
static char |
MIN_SURROGATE
Minimum value of a surrogate unit in UTF-16 encoding - '\uD800' . |
static char |
MIN_VALUE
The minimum possible Character value. |
static byte |
MODIFIER_LETTER
Unicode category constant Lm. |
static byte |
MODIFIER_SYMBOL
Unicode category constant Sk. |
static byte |
NON_SPACING_MARK
Unicode category constant Mn. |
static byte |
OTHER_LETTER
Unicode category constant Lo. |
static byte |
OTHER_NUMBER
Unicode category constant No. |
static byte |
OTHER_PUNCTUATION
Unicode category constant Po. |
static byte |
OTHER_SYMBOL
Unicode category constant So. |
static byte |
PARAGRAPH_SEPARATOR
Unicode category constant Zp. |
static byte |
PRIVATE_USE
Unicode category constant Co. |
static int |
SIZE
Constant for the number of bits to represent a char in two's compliment form. |
static byte |
SPACE_SEPARATOR
Unicode category constant Zs. |
static byte |
START_PUNCTUATION
Unicode category constant Ps. |
static byte |
SURROGATE
Unicode category constant Cs. |
static byte |
TITLECASE_LETTER
Unicode category constant Lt. |
static byte |
UNASSIGNED
Unicode category constant Cn. |
static byte |
UPPERCASE_LETTER
Unicode category constant Lu. |
Constructor Summary | |
---|---|
CharacterHelper()
|
Method Summary | |
---|---|
static int |
charCount(int codePoint)
Calculates the number of char values required to represent the Unicode code point. |
static int |
codePointAt(char[] seq,
int index)
Returns the code point at the index in the char[] . |
static char |
forDigit(int digit,
int radix)
Answers the character which represents the value in the specified radix. |
static int |
getType(char c)
Gets the general Unicode category of the specified character. |
static boolean |
isDefined(char c)
Answers whether the specified character is defined in the Unicode specification. |
static boolean |
isDigit(char c)
Answers whether the character is a digit. |
static boolean |
isHighSurrogate(char ch)
A test for determining if the char is a high surrogate/leading surrogate unit that's used for
representing supplementary characters in UTF-16 encoding. |
static boolean |
isIdentifierIgnorable(char c)
Answers whether the specified character is ignorable in a Java or Unicode identifier. |
static boolean |
isISOControl(char c)
Answers whether the character is an ISO control character. |
static boolean |
isISOControl(int c)
Answers whether the character is an ISO control character. |
static boolean |
isJavaIdentifierPart(char c)
Answers whether the character is a valid part of a Unicode identifier as other than the first character. |
static boolean |
isJavaIdentifierStart(char c)
Answers whether the character is a valid start of a Unicode identifier |
static boolean |
isLetter(char c)
Answers whether the character is a letter. |
static boolean |
isLetterOrDigit(char c)
Answers whether the character is a letter or a digit. |
static boolean |
isLowerCase(char c)
Answers whether the character is a lower case letter. |
static boolean |
isLowSurrogate(char ch)
A test for determining if the char is a high surrogate/leading surrogate unit that's used for
representing supplementary characters in UTF-16 encoding. |
static boolean |
isMirrored(char c)
Answers whether the specified character is mirrored |
static boolean |
isSpace(char c)
Deprecated. Use isWhitespace |
static boolean |
isSpaceChar(char c)
Answers whether the character is a Unicode space character. |
static boolean |
isSupplementaryCodePoint(int codePoint)
A test for determining if the codePoint is within the supplementary code point range. |
static boolean |
isSurrogatePair(char high,
char low)
A test for determining if the char pair is a valid surrogate pair. |
static boolean |
isTitleCase(char c)
Answers whether the character is a titlecase character. |
static boolean |
isUnicodeIdentifierPart(char c)
Answers whether the character is valid as part of a Unicode identifier as other than the first character. |
static boolean |
isUnicodeIdentifierStart(char c)
Answers whether the character is a valid initial character for a Unicode identifier. |
static boolean |
isUpperCase(char c)
Answers whether the character is an upper case letter. |
static boolean |
isValidCodePoint(int codePoint)
A test for determining if the codePoint is a valid Unicode code point. |
static boolean |
isWhitespace(char c)
Answers whether the character is a whitespace character in Java. |
static char[] |
toChars(int codePoint)
Converts the Unicode code point, codePoint , into a UTF-16 encoded sequence that is returned as a
char[] . |
static int |
toCodePoint(char high,
char low)
Converts a surrogate pair into a Unicode code point. |
static java.lang.String |
toString(char value)
Converts the specified character to its string representation. |
static char |
toUpperCase(char c)
Answers the upper case equivalent for the character when the character is a lower case letter, otherwise answers the character. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char MIN_VALUE
public static final char MAX_VALUE
public static final int MIN_RADIX
public static final int MAX_RADIX
public static final byte UNASSIGNED
public static final byte UPPERCASE_LETTER
public static final byte LOWERCASE_LETTER
public static final byte TITLECASE_LETTER
public static final byte MODIFIER_LETTER
public static final byte OTHER_LETTER
public static final byte NON_SPACING_MARK
public static final byte ENCLOSING_MARK
public static final byte COMBINING_SPACING_MARK
public static final byte DECIMAL_DIGIT_NUMBER
public static final byte LETTER_NUMBER
public static final byte OTHER_NUMBER
public static final byte SPACE_SEPARATOR
public static final byte LINE_SEPARATOR
public static final byte PARAGRAPH_SEPARATOR
public static final byte CONTROL
public static final byte FORMAT
public static final byte PRIVATE_USE
public static final byte SURROGATE
public static final byte DASH_PUNCTUATION
public static final byte START_PUNCTUATION
public static final byte END_PUNCTUATION
public static final byte CONNECTOR_PUNCTUATION
public static final byte OTHER_PUNCTUATION
public static final byte MATH_SYMBOL
public static final byte CURRENCY_SYMBOL
public static final byte MODIFIER_SYMBOL
public static final byte OTHER_SYMBOL
public static final byte INITIAL_QUOTE_PUNCTUATION
public static final byte FINAL_QUOTE_PUNCTUATION
public static final byte DIRECTIONALITY_UNDEFINED
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
public static final byte DIRECTIONALITY_ARABIC_NUMBER
public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
public static final byte DIRECTIONALITY_NONSPACING_MARK
public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL
public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR
public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR
public static final byte DIRECTIONALITY_WHITESPACE
public static final byte DIRECTIONALITY_OTHER_NEUTRALS
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
public static final char MIN_HIGH_SURROGATE
Minimum value of a high surrogate or leading surrogate unit in UTF-16 encoding - '\uD800'
.
public static final char MAX_HIGH_SURROGATE
Maximum value of a high surrogate or leading surrogate unit in UTF-16 encoding - '\uDBFF'
.
public static final char MIN_LOW_SURROGATE
Minimum value of a low surrogate or trailing surrogate unit in UTF-16 encoding - '\uDC00'
.
public static final char MAX_LOW_SURROGATE
'\uDFFF'
.
public static final char MIN_SURROGATE
Minimum value of a surrogate unit in UTF-16 encoding - '\uD800'
.
public static final char MAX_SURROGATE
Maximum value of a surrogate unit in UTF-16 encoding - '\uDFFF'
.
public static final int MIN_SUPPLEMENTARY_CODE_POINT
Minimum value of a supplementary code point - U+010000
.
public static final int MIN_CODE_POINT
Minimum code point value - U+0000
.
public static final int MAX_CODE_POINT
Maximum code point value - U+10FFFF
.
public static final int SIZE
Constant for the number of bits to represent a char
in two's compliment form.
Constructor Detail |
---|
public CharacterHelper()
Method Detail |
---|
public static boolean isWhitespace(char c)
c
- the character
c
is a whitespace character in Java, otherwise false.public static boolean isJavaIdentifierStart(char c)
c
- the character
public static int getType(char c)
c
- the character
public static boolean isJavaIdentifierPart(char c)
c
- the character
public static boolean isLetter(char c)
c
- the character
public static boolean isDigit(char c)
c
- the character
public static boolean isLetterOrDigit(char c)
c
- the character
public static boolean isLowerCase(char c)
c
- the character
public static boolean isUpperCase(char c)
c
- the character
public static char forDigit(int digit, int radix)
digit
- the integer valueradix
- the radix
public static boolean isSupplementaryCodePoint(int codePoint)
A test for determining if the codePoint
is within the supplementary code point range.
codePoint
- The code point to test.
public static char[] toChars(int codePoint)
Converts the Unicode code point, codePoint
, into a UTF-16 encoded sequence that is returned as a
char[]
.
codePoint
- The Unicode code point to encode.
char
sequence; if code point is a supplementary code point
, then a 2 char
array is returned, otherwise a 1 char
array is returned.
java.lang.IllegalArgumentException
- if codePoint
is not a valid Unicode code point.public static boolean isValidCodePoint(int codePoint)
A test for determining if the codePoint
is a valid Unicode code point.
codePoint
- The code point to test.
public static boolean isUnicodeIdentifierStart(char c)
c
- the character
public static boolean isUnicodeIdentifierPart(char c)
c
- the character
public static boolean isIdentifierIgnorable(char c)
c
- the character
public static boolean isTitleCase(char c)
c
- the character
public static boolean isSpaceChar(char c)
c
- the character
public static boolean isISOControl(char c)
c
- the character
true
if c
is an ISO control character, otherwise false
public static boolean isISOControl(int c)
c
- the character, including supplementary characters
true
if c
is an ISO control character, otherwise false
public static boolean isDefined(char c)
c
- the character
public static boolean isMirrored(char c)
c
- the character
public static java.lang.String toString(char value)
value
- the character
public static boolean isSurrogatePair(char high, char low)
A test for determining if the char
pair is a valid surrogate pair.
high
- The high surrogate unit to test.low
- The low surrogate unit to test.
isHighSurrogate(char)
,
isLowSurrogate(char)
public static boolean isHighSurrogate(char ch)
A test for determining if the char
is a high surrogate/leading surrogate unit that's used for
representing supplementary characters in UTF-16 encoding.
ch
- The char
unit to test.
isLowSurrogate(char)
public static boolean isLowSurrogate(char ch)
A test for determining if the char
is a high surrogate/leading surrogate unit that's used for
representing supplementary characters in UTF-16 encoding.
ch
- The char
unit to test.
isHighSurrogate(char)
public static int toCodePoint(char high, char low)
Converts a surrogate pair into a Unicode code point. This method assume that the pair are valid surrogates. If the
pair are NOT valid surrogates, then the result is indeterminate. The isSurrogatePair(char, char)
method
should be used prior to this method to validate the pair.
high
- The high surrogate unit.low
- The low surrogate unit.
isSurrogatePair(char, char)
public static int codePointAt(char[] seq, int index)
Returns the code point at the index in the char[]
. If char
unit at the index is a
high-surrogate unit, the next index is less than the length of the sequence and the char
unit at the
next index is a low surrogate unit, then the code point represented by the pair is returned; otherwise the
char
unit at the index is returned.
seq
- The sequence of char
units.index
- The index into the seq
to retrieve and convert.
java.lang.NullPointerException
- if seq
is null
.
java.lang.IndexOutOfBoundsException
- if the index
is negative or greater than or equal to seq.length()
.public static int charCount(int codePoint)
Calculates the number of char
values required to represent the Unicode code point. This method only
tests if the codePoint
is greater than or equal to 0x10000
, in which case 2
is returned, otherwise 1
. To test if the code point is valid, use the isValidCodePoint(int)
method.
codePoint
- The code point to test.
int
value of 2 or 1.isValidCodePoint(int)
,
isSupplementaryCodePoint(int)
public static char toUpperCase(char c)
c
- the character
public static boolean isSpace(char c)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |