java.lang

Class Character

Implemented Interfaces:
Comparable<T>, Serializable

public final class Character
extends Object
implements Serializable, Comparable<T>

The Character class wraps a value of the primitive type char in an object. An object of type Character contains a single field whose type is char.

In addition, this class provides several methods for determining a character's category (lowercase letter, digit, etc.) and for converting characters from uppercase to lowercase and vice versa.

Character information is based on the Unicode Standard, version 4.0.

The methods and data of class Character are defined by the information in the UnicodeData file that is part of the Unicode Character Database maintained by the Unicode Consortium. This file specifies various properties including name and general category for every defined Unicode code point or character range.

The file and its description are available from the Unicode Consortium at:

Unicode Character Representations

The char data type (and therefore the value that a Character object encapsulates) are based on the original Unicode specification, which defined characters as fixed-width 16-bit entities. The Unicode standard has since been changed to allow for characters whose representation requires more than 16 bits. The range of legal code points is now U+0000 to U+10FFFF, known as Unicode scalar value. (Refer to the definition of the U+n notation in the Unicode standard.)

The set of characters from U+0000 to U+FFFF is sometimes referred to as the Basic Multilingual Plane (BMP). Characters whose code points are greater than U+FFFF are called supplementary characters. The Java 2 platform uses the UTF-16 representation in char arrays and in the String and StringBuffer classes. In this representation, supplementary characters are represented as a pair of char values, the first from the high-surrogates range, (\uD800-\uDBFF), the second from the low-surrogates range (\uDC00-\uDFFF).

A char value, therefore, represents Basic Multilingual Plane (BMP) code points, including the surrogate code points, or code units of the UTF-16 encoding. An int value represents all Unicode code points, including supplementary code points. The lower (least significant) 21 bits of int are used to represent Unicode code points and the upper (most significant) 11 bits must be zero. Unless otherwise specified, the behavior with respect to supplementary characters and surrogate char values is as follows:

In the J2SE API documentation, Unicode code point is used for character values in the range between U+0000 and U+10FFFF, and Unicode code unit is used for 16-bit char values that are code units of the UTF-16 encoding. For more information on Unicode terminology, refer to the Unicode Glossary.

Since:
1.0
See Also:
Serialized Form

Nested Class Summary

static class
Character.Subset
Instances of this class represent particular subsets of the Unicode character set.
static class
Character.UnicodeBlock
A family of character subsets representing the character blocks in the Unicode specification.

Field Summary

static byte
COMBINING_SPACING_MARK
General category "Mc" in the Unicode specification.
static byte
CONNECTOR_PUNCTUATION
General category "Pc" in the Unicode specification.
static byte
CONTROL
General category "Cc" in the Unicode specification.
static byte
CURRENCY_SYMBOL
General category "Sc" in the Unicode specification.
static byte
DASH_PUNCTUATION
General category "Pd" in the Unicode specification.
static byte
DECIMAL_DIGIT_NUMBER
General category "Nd" in the Unicode specification.
static byte
DIRECTIONALITY_ARABIC_NUMBER
Weak bidirectional character type "AN" in the Unicode specification.
static byte
DIRECTIONALITY_BOUNDARY_NEUTRAL
Weak bidirectional character type "BN" in the Unicode specification.
static byte
DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
Weak bidirectional character type "CS" in the Unicode specification.
static byte
DIRECTIONALITY_EUROPEAN_NUMBER
Weak bidirectional character type "EN" in the Unicode specification.
static byte
DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
Weak bidirectional character type "ES" in the Unicode specification.
static byte
DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
Weak bidirectional character type "ET" in the Unicode specification.
static byte
DIRECTIONALITY_LEFT_TO_RIGHT
Strong bidirectional character type "L" in the Unicode specification.
static byte
DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
Strong bidirectional character type "LRE" in the Unicode specification.
static byte
DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
Strong bidirectional character type "LRO" in the Unicode specification.
static byte
DIRECTIONALITY_NONSPACING_MARK
Weak bidirectional character type "NSM" in the Unicode specification.
static byte
DIRECTIONALITY_OTHER_NEUTRALS
Neutral bidirectional character type "ON" in the Unicode specification.
static byte
DIRECTIONALITY_PARAGRAPH_SEPARATOR
Neutral bidirectional character type "B" in the Unicode specification.
static byte
DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
Weak bidirectional character type "PDF" in the Unicode specification.
static byte
DIRECTIONALITY_RIGHT_TO_LEFT
Strong bidirectional character type "R" in the Unicode specification.
static byte
DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
Strong bidirectional character type "AL" in the Unicode specification.
static byte
DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
Strong bidirectional character type "RLE" in the Unicode specification.
static byte
DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
Strong bidirectional character type "RLO" in the Unicode specification.
static byte
DIRECTIONALITY_SEGMENT_SEPARATOR
Neutral bidirectional character type "S" in the Unicode specification.
static byte
DIRECTIONALITY_UNDEFINED
Undefined bidirectional character type.
static byte
DIRECTIONALITY_WHITESPACE
Neutral bidirectional character type "WS" in the Unicode specification.
static byte
ENCLOSING_MARK
General category "Me" in the Unicode specification.
static byte
END_PUNCTUATION
General category "Pe" in the Unicode specification.
static byte
FINAL_QUOTE_PUNCTUATION
General category "Pf" in the Unicode specification.
static byte
FORMAT
General category "Cf" in the Unicode specification.
static byte
INITIAL_QUOTE_PUNCTUATION
General category "Pi" in the Unicode specification.
static byte
LETTER_NUMBER
General category "Nl" in the Unicode specification.
static byte
LINE_SEPARATOR
General category "Zl" in the Unicode specification.
static byte
LOWERCASE_LETTER
General category "Ll" in the Unicode specification.
static byte
MATH_SYMBOL
General category "Sm" in the Unicode specification.
static int
MAX_CODE_POINT
The maximum value of a Unicode code point.
static char
MAX_HIGH_SURROGATE
The maximum value of a Unicode high-surrogate code unit in the UTF-16 encoding.
static char
MAX_LOW_SURROGATE
The maximum value of a Unicode low-surrogate code unit in the UTF-16 encoding.
static int
MAX_RADIX
The maximum radix available for conversion to and from strings.
static char
MAX_SURROGATE
The maximum value of a Unicode surrogate code unit in the UTF-16 encoding.
static char
MAX_VALUE
The constant value of this field is the largest value of type char, '\uFFFF'.
static int
MIN_CODE_POINT
The minimum value of a Unicode code point.
static char
MIN_HIGH_SURROGATE
The minimum value of a Unicode high-surrogate code unit in the UTF-16 encoding.
static char
MIN_LOW_SURROGATE
The minimum value of a Unicode low-surrogate code unit in the UTF-16 encoding.
static int
MIN_RADIX
The minimum radix available for conversion to and from strings.
static int
MIN_SUPPLEMENTARY_CODE_POINT
The minimum value of a supplementary code point.
static char
MIN_SURROGATE
The minimum value of a Unicode surrogate code unit in the UTF-16 encoding.
static char
MIN_VALUE
The constant value of this field is the smallest value of type char, '\u0000'.
static byte
MODIFIER_LETTER
General category "Lm" in the Unicode specification.
static byte
MODIFIER_SYMBOL
General category "Sk" in the Unicode specification.
static byte
NON_SPACING_MARK
General category "Mn" in the Unicode specification.
static byte
OTHER_LETTER
General category "Lo" in the Unicode specification.
static byte
OTHER_NUMBER
General category "No" in the Unicode specification.
static byte
OTHER_PUNCTUATION
General category "Po" in the Unicode specification.
static byte
OTHER_SYMBOL
General category "So" in the Unicode specification.
static byte
PARAGRAPH_SEPARATOR
General category "Zp" in the Unicode specification.
static byte
PRIVATE_USE
General category "Co" in the Unicode specification.
static int
SIZE
The number of bits used to represent a char value in unsigned binary form.
static byte
SPACE_SEPARATOR
General category "Zs" in the Unicode specification.
static byte
START_PUNCTUATION
General category "Ps" in the Unicode specification.
static byte
SURROGATE
General category "Cs" in the Unicode specification.
static byte
TITLECASE_LETTER
General category "Lt" in the Unicode specification.
static Class
TYPE
The Class instance representing the primitive type char.
static byte
UNASSIGNED
General category "Cn" in the Unicode specification.
static byte
UPPERCASE_LETTER
General category "Lu" in the Unicode specification.

Constructor Summary

Character(char value)
Constructs a newly allocated Character object that represents the specified char value.

Method Summary

static @Deprecated
boolean isJavaLetter(char ch)
Deprecated. Replaced by isJavaIdentifierStart(char).
static @Deprecated
boolean isJavaLetterOrDigit(char ch)
Deprecated. Replaced by isJavaIdentifierPart(char).
static @Deprecated
boolean isSpace(char ch)
Deprecated. Replaced by isWhitespace(char).
static int
charCount(int codePoint)
Determines the number of char values needed to represent the specified character (Unicode code point).
char
charValue()
Returns the value of this Character object.
static int
codePointAt(char[] a, int index)
Returns the code point at the given index of the char array.
static int
codePointAt(char[] a, int index, int limit)
Returns the code point at the given index of the char array, where only array elements with index less than limit can be used.
static int
codePointAt(CharSequence seq, int index)
Returns the code point at the given index of the CharSequence.
static int
codePointBefore(char[] a, int index)
Returns the code point preceding the given index of the char array.
static int
codePointBefore(char[] a, int index, int start)
Returns the code point preceding the given index of the char array, where only array elements with index greater than or equal to start can be used.
static int
codePointBefore(CharSequence seq, int index)
Returns the code point preceding the given index of the CharSequence.
static int
codePointCount(char[] a, int offset, int count)
Returns the number of Unicode code points in a subarray of the char array argument.
static int
codePointCount(CharSequence seq, int beginIndex, int endIndex)
Returns the number of Unicode code points in the text range of the specified char sequence.
int
compareTo(Character anotherCharacter)
Compares two Character objects numerically.
static int
digit(char ch, int radix)
Returns the numeric value of the character ch in the specified radix.
static int
digit(int codePoint, int radix)
Returns the numeric value of the specified character (Unicode code point) in the specified radix.
boolean
equals(Object obj)
Compares this object against the specified object.
static char
forDigit(int digit, int radix)
Determines the character representation for a specific digit in the specified radix.
static byte
getDirectionality(char ch)
Returns the Unicode directionality property for the given character.
static byte
getDirectionality(int codePoint)
Returns the Unicode directionality property for the given character (Unicode code point).
static int
getNumericValue(char ch)
Returns the int value that the specified Unicode character represents.
static int
getNumericValue(int codePoint)
Returns the int value that the specified character (Unicode code point) represents.
static int
getType(char ch)
Returns a value indicating a character's general category.
static int
getType(int codePoint)
Returns a value indicating a character's general category.
int
hashCode()
Returns a hash code for this Character.
static boolean
isDefined(char ch)
Determines if a character is defined in Unicode.
static boolean
isDefined(int codePoint)
Determines if a character (Unicode code point) is defined in Unicode.
static boolean
isDigit(char ch)
Determines if the specified character is a digit.
static boolean
isDigit(int codePoint)
Determines if the specified character (Unicode code point) is a digit.
static boolean
isHighSurrogate(char ch)
Determines if the given char value is a high-surrogate code unit (also known as leading-surrogate code unit).
static boolean
isISOControl(char ch)
Determines if the specified character is an ISO control character.
static boolean
isISOControl(int codePoint)
Determines if the referenced character (Unicode code point) is an ISO control character.
static boolean
isIdentifierIgnorable(char ch)
Determines if the specified character should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
static boolean
isIdentifierIgnorable(int codePoint)
Determines if the specified character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
static boolean
isJavaIdentifierPart(char ch)
Determines if the specified character may be part of a Java identifier as other than the first character.
static boolean
isJavaIdentifierPart(int codePoint)
Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character.
static boolean
isJavaIdentifierStart(char ch)
Determines if the specified character is permissible as the first character in a Java identifier.
static boolean
isJavaIdentifierStart(int codePoint)
Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.
static boolean
isLetter(char ch)
Determines if the specified character is a letter.
static boolean
isLetter(int codePoint)
Determines if the specified character (Unicode code point) is a letter.
static boolean
isLetterOrDigit(char ch)
Determines if the specified character is a letter or digit.
static boolean
isLetterOrDigit(int codePoint)
Determines if the specified character (Unicode code point) is a letter or digit.
static boolean
isLowSurrogate(char ch)
Determines if the given char value is a low-surrogate code unit (also known as trailing-surrogate code unit).
static boolean
isLowerCase(char ch)
Determines if the specified character is a lowercase character.
static boolean
isLowerCase(int codePoint)
Determines if the specified character (Unicode code point) is a lowercase character.
static boolean
isMirrored(char ch)
Determines whether the character is mirrored according to the Unicode specification.
static boolean
isMirrored(int codePoint)
Determines whether the specified character (Unicode code point) is mirrored according to the Unicode specification.
static boolean
isSpaceChar(char ch)
Determines if the specified character is a Unicode space character.
static boolean
isSpaceChar(int codePoint)
Determines if the specified character (Unicode code point) is a Unicode space character.
static boolean
isSupplementaryCodePoint(int codePoint)
Determines whether the specified character (Unicode code point) is in the supplementary character range.
static boolean
isSurrogatePair(char high, char low)
Determines whether the specified pair of char values is a valid surrogate pair.
static boolean
isTitleCase(char ch)
Determines if the specified character is a titlecase character.
static boolean
isTitleCase(int codePoint)
Determines if the specified character (Unicode code point) is a titlecase character.
static boolean
isUnicodeIdentifierPart(char ch)
Determines if the specified character may be part of a Unicode identifier as other than the first character.
static boolean
isUnicodeIdentifierPart(int codePoint)
Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.
static boolean
isUnicodeIdentifierStart(char ch)
Determines if the specified character is permissible as the first character in a Unicode identifier.
static boolean
isUnicodeIdentifierStart(int codePoint)
Determines if the specified character (Unicode code point) is permissible as the first character in a Unicode identifier.
static boolean
isUpperCase(char ch)
Determines if the specified character is an uppercase character.
static boolean
isUpperCase(int codePoint)
Determines if the specified character (Unicode code point) is an uppercase character.
static boolean
isValidCodePoint(int codePoint)
Determines whether the specified code point is a valid Unicode code point value in the range of 0x0000 to 0x10FFFF inclusive.
static boolean
isWhitespace(char ch)
Determines if the specified character is white space according to Java.
static boolean
isWhitespace(int codePoint)
Determines if the specified character (Unicode code point) is white space according to Java.
static int
offsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset)
Returns the index within the given char subarray that is offset from the given index by codePointOffset code points.
static int
offsetByCodePoints(CharSequence seq, int index, int codePointOffset)
Returns the index within the given char sequence that is offset from the given index by codePointOffset code points.
static char
reverseBytes(char ch)
Returns the value obtained by reversing the order of the bytes in the specified char value.
static char[]
toChars(int codePoint)
Converts the specified character (Unicode code point) to its UTF-16 representation stored in a char array.
static int
toChars(int codePoint, char[] dst, int dstIndex)
Converts the specified character (Unicode code point) to its UTF-16 representation.
static int
toCodePoint(char high, char low)
Converts the specified surrogate pair to its supplementary code point value.
static char
toLowerCase(char ch)
Converts the character argument to lowercase using case mapping information from the UnicodeData file.
static int
toLowerCase(int codePoint)
Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.
String
toString()
Returns a String object representing this Character's value.
static String
toString(char c)
Returns a String object representing the specified char.
static char
toTitleCase(char ch)
Converts the character argument to titlecase using case mapping information from the UnicodeData file.
static int
toTitleCase(int codePoint)
Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file.
static char
toUpperCase(char ch)
Converts the character argument to uppercase using case mapping information from the UnicodeData file.
static int
toUpperCase(int codePoint)
Converts the character (Unicode code point) argument to uppercase using case mapping information from the UnicodeData file.
static Character
valueOf(char c)
Returns a Character instance representing the specified char value.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

COMBINING_SPACING_MARK

public static final byte COMBINING_SPACING_MARK
General category "Mc" in the Unicode specification.
Field Value:
8
Since:
1.1
Usages and Demos :

View More Examples of Character.COMBINING_SPACING_MARK
   1:                 case Character.CONTROL:
   2:                 case Character.COMBINING_SPACING_MARK:
   3:                 case Character.ENCLOSING_MARK:
   4:                 case Character.FORMAT:
   5:                 case Character.LETTER_NUMBER:

View Full Code Here
   1:   { Character.NON_SPACING_MARK,
   2:     Character.COMBINING_SPACING_MARK,
   3:     Character.ENCLOSING_MARK };
   4:         ...
   5:       if (name.equals("Mc"))
   6:           return new UnicodeCategoryHandler(Character.COMBINING_SPACING_MARK);
   7:       if (name.equals("Pc"))
   8:           return new UnicodeCategoryHandler(Character.CONNECTOR_PUNCTUATION);
   9:       if (name.equals("Cc"))

View Full Code Here

CONNECTOR_PUNCTUATION

public static final byte CONNECTOR_PUNCTUATION
General category "Pc" in the Unicode specification.
Field Value:
23
Since:
1.1
Usages and Demos :

View More Examples of Character.CONNECTOR_PUNCTUATION
   1:                 case Character.CURRENCY_SYMBOL:
   2:                 case Character.CONNECTOR_PUNCTUATION:
   3:                 case Character.FINAL_QUOTE_PUNCTUATION:
   4:                 case Character.INITIAL_QUOTE_PUNCTUATION:
   5:                 case Character.DASH_PUNCTUATION:

View Full Code Here
   1:     Character.END_PUNCTUATION,
   2:     Character.CONNECTOR_PUNCTUATION,
   3:     Character.OTHER_PUNCTUATION,
   4:         ...
   5:       if (name.equals("Pc"))
   6:           return new UnicodeCategoryHandler(Character.CONNECTOR_PUNCTUATION);
   7:       if (name.equals("Cc"))
   8:           return new UnicodeCategoryHandler(Character.CONTROL);
   9:       if (name.equals("Sc"))

View Full Code Here
   1:       case (char)-10: t=Character.getType(c);
   2:         o=(t==Character.CONNECTOR_PUNCTUATION)||
   3:           (t==Character.DASH_PUNCTUATION)||
   4:           (t==Character.END_PUNCTUATION)||
   5:           (t==Character.FINAL_QUOTE_PUNCTUATION)||

View Full Code Here
   1:                                 || (Character.getType(character) == Character.END_PUNCTUATION)
   2:                                 || (Character.getType(character) == Character.CONNECTOR_PUNCTUATION)
   3:                                 || (Character.getType(character) == Character.CURRENCY_SYMBOL)
   4:                                 || (Character.getType(character) == Character.MODIFIER_SYMBOL);
   5:         }

View Full Code Here
   1:         case Character.END_PUNCTUATION:
   2:         case Character.CONNECTOR_PUNCTUATION:
   3:         case Character.OTHER_PUNCTUATION:
   4:             case Character.MATH_SYMBOL:
   5:             case Character.CURRENCY_SYMBOL:

View Full Code Here

CONTROL

public static final byte CONTROL
General category "Cc" in the Unicode specification.
Field Value:
15
Since:
1.1
Usages and Demos :

View More Examples of Character.CONTROL
   1:                 case Character.OTHER_SYMBOL:
   2:                 case Character.CONTROL:
   3:                 case Character.COMBINING_SPACING_MARK:
   4:                 case Character.ENCLOSING_MARK:
   5:                 case Character.FORMAT:

View Full Code Here
   1:   static final byte[] OTHER = new byte[]
   2:   { Character.CONTROL,
   3:     Character.FORMAT,
   4:         ...
   5:       if (name.equals("Cc"))
   6:           return new UnicodeCategoryHandler(Character.CONTROL);
   7:       if (name.equals("Sc"))
   8:           return new UnicodeCategoryHandler(Character.CURRENCY_SYMBOL);
   9:       if (name.equals("Pd"))

View Full Code Here
   1: 
   2:     return ((category != Character.CONTROL) &&
   3:             (category != Character.FORMAT) &&
   4:             (category != Character.SURROGATE) &&
   5:             (category != Character.PRIVATE_USE) &&

View Full Code Here
   1:                         break;
   2:                       case Character.CONTROL:
   3:                       case Character.FORMAT:
   4:                       case Character.SURROGATE:
   5:                       case Character.PRIVATE_USE:

View Full Code Here
   1:                         break;
   2:                       case Character.CONTROL:
   3:                       case Character.FORMAT:
   4:                       case Character.SURROGATE:
   5:                       case Character.PRIVATE_USE:

View Full Code Here

CURRENCY_SYMBOL

public static final byte CURRENCY_SYMBOL
General category "Sc" in the Unicode specification.
Field Value:
26
Since:
1.1
Usages and Demos :

View More Examples of Character.CURRENCY_SYMBOL
   1: 
   2:                 case Character.CURRENCY_SYMBOL:
   3:                 case Character.CONNECTOR_PUNCTUATION:
   4:                 case Character.FINAL_QUOTE_PUNCTUATION:
   5:                 case Character.INITIAL_QUOTE_PUNCTUATION:

View Full Code Here
   1:   { Character.MATH_SYMBOL,
   2:     Character.CURRENCY_SYMBOL,
   3:     Character.MODIFIER_SYMBOL,
   4:         ...
   5:       if (name.equals("Sc"))
   6:           return new UnicodeCategoryHandler(Character.CURRENCY_SYMBOL);
   7:       if (name.equals("Pd"))
   8:           return new UnicodeCategoryHandler(Character.DASH_PUNCTUATION);
   9:       if (name.equals("Nd"))

View Full Code Here
   1:                     || (type == Character.OTHER_PUNCTUATION)
   2:                     || (type == Character.CURRENCY_SYMBOL)
   3:                     || (type == Character.START_PUNCTUATION)
   4:                     || (type == Character.DASH_PUNCTUATION)) 
   5:                     getTextField().replaceSelection(Character.toString(e.getKeyChar()));                    

View Full Code Here
   1:                                 || (Character.getType(character) == Character.CONNECTOR_PUNCTUATION)
   2:                                 || (Character.getType(character) == Character.CURRENCY_SYMBOL)
   3:                                 || (Character.getType(character) == Character.MODIFIER_SYMBOL);
   4:         }

View Full Code Here
   1:                             || (type == Character.OTHER_PUNCTUATION)
   2:                             || (type == Character.CURRENCY_SYMBOL)
   3:                             || (type == Character.START_PUNCTUATION)
   4:                             || (type == Character.DASH_PUNCTUATION)) {

View Full Code Here

DASH_PUNCTUATION

public static final byte DASH_PUNCTUATION
General category "Pd" in the Unicode specification.
Field Value:
20
Since:
1.1
Usages and Demos :

View More Examples of Character.DASH_PUNCTUATION
   1:                 case Character.INITIAL_QUOTE_PUNCTUATION:
   2:                 case Character.DASH_PUNCTUATION:
   3:                 case Character.START_PUNCTUATION:
   4:                 case Character.END_PUNCTUATION:
   5:                 case Character.OTHER_PUNCTUATION:

View Full Code Here
   1:   static final byte[] PUNCTUATION = new byte[]
   2:   { Character.DASH_PUNCTUATION,
   3:     Character.START_PUNCTUATION,
   4:         ...
   5:       if (name.equals("Pd"))
   6:           return new UnicodeCategoryHandler(Character.DASH_PUNCTUATION);
   7:       if (name.equals("Nd"))
   8:           return new UnicodeCategoryHandler(Character.DECIMAL_DIGIT_NUMBER);
   9:       if (name.equals("Me"))

View Full Code Here
   1:                     || (type == Character.START_PUNCTUATION)
   2:                     || (type == Character.DASH_PUNCTUATION)) 
   3:                     getTextField().replaceSelection(Character.toString(e.getKeyChar()));                    
   4:                 else if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE)
   5:                     removeLastChar();

View Full Code Here
   1:                                 || Character.isSpaceChar(character)
   2:                                 || (Character.getType(character) == Character.DASH_PUNCTUATION)
   3:                                 || (Character.getType(character) == Character.START_PUNCTUATION)
   4:                                 || (Character.getType(character) == Character.END_PUNCTUATION)
   5:                                 || (Character.getType(character) == Character.CONNECTOR_PUNCTUATION)

View Full Code Here
   1:                             || (type == Character.START_PUNCTUATION)
   2:                             || (type == Character.DASH_PUNCTUATION)) {
   3: 
   4:                         getSelectTextField().replaceSelection(
   5:                                 Character.toString(e.getKeyChar()));

View Full Code Here

DECIMAL_DIGIT_NUMBER

public static final byte DECIMAL_DIGIT_NUMBER
General category "Nd" in the Unicode specification.
Field Value:
9
Since:
1.1
Usages and Demos :

View More Examples of Character.DECIMAL_DIGIT_NUMBER
   1: 
   2:             case Character.DECIMAL_DIGIT_NUMBER:
   3:             case Character.LOWERCASE_LETTER:
   4:             case Character.UPPERCASE_LETTER:
   5:                 push(c);

View Full Code Here
   1:                 case Character.LOWERCASE_LETTER:
   2:                 case Character.DECIMAL_DIGIT_NUMBER:
   3:                 case Character.SPACE_SEPARATOR:
   4:                     result.append(ch);
   5:                     wasUnwanted = false;

View Full Code Here
   1:   static final byte[] NUMBER = new byte[]
   2:   { Character.DECIMAL_DIGIT_NUMBER,
   3:     Character.LETTER_NUMBER,
   4:         ...
   5:       if (name.equals("Nd"))
   6:           return new UnicodeCategoryHandler(Character.DECIMAL_DIGIT_NUMBER);
   7:       if (name.equals("Me"))
   8:           return new UnicodeCategoryHandler(Character.ENCLOSING_MARK);
   9:       if (name.equals("Pe"))

View Full Code Here

DIRECTIONALITY_ARABIC_NUMBER

public static final byte DIRECTIONALITY_ARABIC_NUMBER
Weak bidirectional character type "AN" in the Unicode specification.
Field Value:
6
Since:
1.4

DIRECTIONALITY_BOUNDARY_NEUTRAL

public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL
Weak bidirectional character type "BN" in the Unicode specification.
Field Value:
9
Since:
1.4

DIRECTIONALITY_COMMON_NUMBER_SEPARATOR

public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
Weak bidirectional character type "CS" in the Unicode specification.
Field Value:
7
Since:
1.4

DIRECTIONALITY_EUROPEAN_NUMBER

public static final byte DIRECTIONALITY_EUROPEAN_NUMBER
Weak bidirectional character type "EN" in the Unicode specification.
Field Value:
3
Since:
1.4

DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR

public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
Weak bidirectional character type "ES" in the Unicode specification.
Field Value:
4
Since:
1.4

DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR

public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
Weak bidirectional character type "ET" in the Unicode specification.
Field Value:
5
Since:
1.4

DIRECTIONALITY_LEFT_TO_RIGHT

public static final byte DIRECTIONALITY_LEFT_TO_RIGHT
Strong bidirectional character type "L" in the Unicode specification.
Field Value:
0
Since:
1.4

DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING

public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
Strong bidirectional character type "LRE" in the Unicode specification.
Field Value:
14
Since:
1.4

DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE

public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
Strong bidirectional character type "LRO" in the Unicode specification.
Field Value:
15
Since:
1.4

DIRECTIONALITY_NONSPACING_MARK

public static final byte DIRECTIONALITY_NONSPACING_MARK
Weak bidirectional character type "NSM" in the Unicode specification.
Field Value:
8
Since:
1.4

DIRECTIONALITY_OTHER_NEUTRALS

public static final byte DIRECTIONALITY_OTHER_NEUTRALS
Neutral bidirectional character type "ON" in the Unicode specification.
Field Value:
13
Since:
1.4

DIRECTIONALITY_PARAGRAPH_SEPARATOR

public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR
Neutral bidirectional character type "B" in the Unicode specification.
Field Value:
10
Since:
1.4

DIRECTIONALITY_POP_DIRECTIONAL_FORMAT

public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT
Weak bidirectional character type "PDF" in the Unicode specification.
Field Value:
18
Since:
1.4

DIRECTIONALITY_RIGHT_TO_LEFT

public static final byte DIRECTIONALITY_RIGHT_TO_LEFT
Strong bidirectional character type "R" in the Unicode specification.
Field Value:
1
Since:
1.4

DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC

public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
Strong bidirectional character type "AL" in the Unicode specification.
Field Value:
2
Since:
1.4

DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING

public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
Strong bidirectional character type "RLE" in the Unicode specification.
Field Value:
16
Since:
1.4

DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE

public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
Strong bidirectional character type "RLO" in the Unicode specification.
Field Value:
17
Since:
1.4

DIRECTIONALITY_SEGMENT_SEPARATOR

public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR
Neutral bidirectional character type "S" in the Unicode specification.
Field Value:
11
Since:
1.4

DIRECTIONALITY_UNDEFINED

public static final byte DIRECTIONALITY_UNDEFINED
Undefined bidirectional character type. Undefined char values have undefined directionality in the Unicode specification.
Field Value:
-1
Since:
1.4

DIRECTIONALITY_WHITESPACE

public static final byte DIRECTIONALITY_WHITESPACE
Neutral bidirectional character type "WS" in the Unicode specification.
Field Value:
12
Since:
1.4

ENCLOSING_MARK

public static final byte ENCLOSING_MARK
General category "Me" in the Unicode specification.
Field Value:
7
Since:
1.1
Usages and Demos :

View More Examples of Character.ENCLOSING_MARK
   1:                 case Character.COMBINING_SPACING_MARK:
   2:                 case Character.ENCLOSING_MARK:
   3:                 case Character.FORMAT:
   4:                 case Character.LETTER_NUMBER:
   5:                 case Character.MODIFIER_SYMBOL:

View Full Code Here
   1:     Character.COMBINING_SPACING_MARK,
   2:     Character.ENCLOSING_MARK };
   3:   
   4:         ...
   5:       if (name.equals("Me"))
   6:           return new UnicodeCategoryHandler(Character.ENCLOSING_MARK);
   7:       if (name.equals("Pe"))
   8:           return new UnicodeCategoryHandler(Character.END_PUNCTUATION);
   9:       if (name.equals("Pf"))

View Full Code Here

END_PUNCTUATION

public static final byte END_PUNCTUATION
General category "Pe" in the Unicode specification.
Field Value:
22
Since:
1.1
Usages and Demos :

View More Examples of Character.END_PUNCTUATION
   1:                 case Character.START_PUNCTUATION:
   2:                 case Character.END_PUNCTUATION:
   3:                 case Character.OTHER_PUNCTUATION:
   4:                 case Character.OTHER_LETTER:
   5:                 case Character.MODIFIER_LETTER:

View Full Code Here
   1:     Character.START_PUNCTUATION,
   2:     Character.END_PUNCTUATION,
   3:     Character.CONNECTOR_PUNCTUATION,
   4:         ...
   5:       if (name.equals("Pe"))
   6:           return new UnicodeCategoryHandler(Character.END_PUNCTUATION);
   7:       if (name.equals("Pf"))
   8:           return new UnicodeCategoryHandler(Character.FINAL_QUOTE_PUNCTUATION);
   9:       if (name.equals("Cf"))

View Full Code Here
   1:                                 || (Character.getType(character) == Character.START_PUNCTUATION)
   2:                                 || (Character.getType(character) == Character.END_PUNCTUATION)
   3:                                 || (Character.getType(character) == Character.CONNECTOR_PUNCTUATION)
   4:                                 || (Character.getType(character) == Character.CURRENCY_SYMBOL)
   5:                                 || (Character.getType(character) == Character.MODIFIER_SYMBOL);

View Full Code Here
   1:         case Character.START_PUNCTUATION:
   2:         case Character.END_PUNCTUATION:
   3:         case Character.CONNECTOR_PUNCTUATION:
   4:         case Character.OTHER_PUNCTUATION:
   5:             case Character.MATH_SYMBOL:

View Full Code Here
   1:                     if (type == Character.START_PUNCTUATION || 
   2:                         type == Character.END_PUNCTUATION) {
   3:                         if (i == 0x00AB || i == 0x2018 || i == 0x201B || i == 0x201C ||
   4:         ...
   5:                       case Character.START_PUNCTUATION:
   6:                       case Character.END_PUNCTUATION:
   7:                       case CHAR_INIT_QUOTE:
   8:                       case CHAR_FINAL_QUOTE:
   9:                       case Character.OTHER_PUNCTUATION:

View Full Code Here

FINAL_QUOTE_PUNCTUATION

public static final byte FINAL_QUOTE_PUNCTUATION
General category "Pf" in the Unicode specification.
Field Value:
30
Since:
1.4
Usages and Demos :

View More Examples of Character.FINAL_QUOTE_PUNCTUATION
   1:                 case Character.CONNECTOR_PUNCTUATION:
   2:                 case Character.FINAL_QUOTE_PUNCTUATION:
   3:                 case Character.INITIAL_QUOTE_PUNCTUATION:
   4:                 case Character.DASH_PUNCTUATION:
   5:                 case Character.START_PUNCTUATION:

View Full Code Here
   1:     Character.INITIAL_QUOTE_PUNCTUATION,
   2:     Character.FINAL_QUOTE_PUNCTUATION};
   3:   
   4:         ...
   5:       if (name.equals("Pf"))
   6:           return new UnicodeCategoryHandler(Character.FINAL_QUOTE_PUNCTUATION);
   7:       if (name.equals("Cf"))
   8:           return new UnicodeCategoryHandler(Character.FORMAT);
   9:       if (name.equals("Pi"))

View Full Code Here

FORMAT

public static final byte FORMAT
General category "Cf" in the Unicode specification.
Field Value:
16
Since:
1.1
Usages and Demos :

View More Examples of Character.FORMAT
   1:                 case Character.ENCLOSING_MARK:
   2:                 case Character.FORMAT:
   3:                 case Character.LETTER_NUMBER:
   4:                 case Character.MODIFIER_SYMBOL:
   5:                 case Character.NON_SPACING_MARK:

View Full Code Here
   1:   { Character.CONTROL,
   2:     Character.FORMAT,
   3:     Character.PRIVATE_USE,
   4:         ...
   5:       if (name.equals("Cf"))
   6:           return new UnicodeCategoryHandler(Character.FORMAT);
   7:       if (name.equals("Pi"))
   8:           return new UnicodeCategoryHandler(Character.INITIAL_QUOTE_PUNCTUATION);
   9:       if (name.equals("Nl"))

View Full Code Here
   1:       
   2:       case Character.FORMAT:
   3:           return c==0x06DD;
   4:       
   5:       default:

View Full Code Here
   1:     private static boolean formatChar(int c) {
   2:         return Character.getType((char)c) == Character.FORMAT;
   3:     }
   4: 
   5:     private static boolean eolChar(int c) {

View Full Code Here
   1:                       case Character.CONTROL:
   2:                       case Character.FORMAT:
   3:                       case Character.SURROGATE:
   4:                       case Character.PRIVATE_USE:
   5:                       case Character.UNASSIGNED:

View Full Code Here

INITIAL_QUOTE_PUNCTUATION

public static final byte INITIAL_QUOTE_PUNCTUATION
General category "Pi" in the Unicode specification.
Field Value:
29
Since:
1.4
Usages and Demos :

View More Examples of Character.INITIAL_QUOTE_PUNCTUATION
   1:                 case Character.FINAL_QUOTE_PUNCTUATION:
   2:                 case Character.INITIAL_QUOTE_PUNCTUATION:
   3:                 case Character.DASH_PUNCTUATION:
   4:                 case Character.START_PUNCTUATION:
   5:                 case Character.END_PUNCTUATION:

View Full Code Here
   1:     Character.OTHER_PUNCTUATION,
   2:     Character.INITIAL_QUOTE_PUNCTUATION,
   3:     Character.FINAL_QUOTE_PUNCTUATION};
   4:         ...
   5:       if (name.equals("Pi"))
   6:           return new UnicodeCategoryHandler(Character.INITIAL_QUOTE_PUNCTUATION);
   7:       if (name.equals("Nl"))
   8:           return new UnicodeCategoryHandler(Character.LETTER_NUMBER);
   9:       if (name.equals("Zl"))

View Full Code Here

LETTER_NUMBER

public static final byte LETTER_NUMBER
General category "Nl" in the Unicode specification.
Field Value:
10
Since:
1.1
Usages and Demos :

View More Examples of Character.LETTER_NUMBER
   1:                 case Character.FORMAT:
   2:                 case Character.LETTER_NUMBER:
   3:                 case Character.MODIFIER_SYMBOL:
   4:                 case Character.NON_SPACING_MARK:
   5:                 case Character.PARAGRAPH_SEPARATOR:

View Full Code Here
   1:   { Character.DECIMAL_DIGIT_NUMBER,
   2:     Character.LETTER_NUMBER,
   3:     Character.OTHER_NUMBER };
   4:         ...
   5:       if (name.equals("Nl"))
   6:           return new UnicodeCategoryHandler(Character.LETTER_NUMBER);
   7:       if (name.equals("Zl"))
   8:           return new UnicodeCategoryHandler(Character.LINE_SEPARATOR);
   9:       if (name.equals("Ll"))

View Full Code Here

LINE_SEPARATOR

public static final byte LINE_SEPARATOR
General category "Zl" in the Unicode specification.
Field Value:
13
Since:
1.1
Usages and Demos :

View More Examples of Character.LINE_SEPARATOR
   1: 
   2:                 case Character.LINE_SEPARATOR:
   3:                     result.append('\n');
   4:                     wasUnwanted = true;
   5:                     break;

View Full Code Here
   1:   { Character.SPACE_SEPARATOR,
   2:     Character.LINE_SEPARATOR,
   3:     Character.PARAGRAPH_SEPARATOR };
   4:         ...
   5:       if (name.equals("Zl"))
   6:           return new UnicodeCategoryHandler(Character.LINE_SEPARATOR);
   7:       if (name.equals("Ll"))
   8:           return new UnicodeCategoryHandler(Character.LOWERCASE_LETTER);
   9:       if (name.equals("Sm"))

View Full Code Here
   1:                       case Character.SPACE_SEPARATOR:
   2:                       case Character.LINE_SEPARATOR:
   3:                       case Character.PARAGRAPH_SEPARATOR:
   4:                         type = CHAR_SEPARATOR;
   5:                         break;

View Full Code Here
   1:                       case Character.SPACE_SEPARATOR:
   2:                       case Character.LINE_SEPARATOR:
   3:                       case Character.PARAGRAPH_SEPARATOR:
   4:                         type = CHAR_SEPARATOR;
   5:                         break;

View Full Code Here

LOWERCASE_LETTER

public static final byte LOWERCASE_LETTER
General category "Ll" in the Unicode specification.
Field Value:
2
Since:
1.1
Usages and Demos :

View More Examples of Character.LOWERCASE_LETTER
   1: 
   2:                 case Character.LOWERCASE_LETTER:
   3:                 case Character.UPPERCASE_LETTER:
   4: 
   5:                     if (text.length()>1) {

View Full Code Here
   1:             case Character.DECIMAL_DIGIT_NUMBER:
   2:             case Character.LOWERCASE_LETTER:
   3:             case Character.UPPERCASE_LETTER:
   4:                 push(c);
   5:                 if (length == MAX_WORD_LEN) return flush();

View Full Code Here
   1:                 case Character.TITLECASE_LETTER:
   2:                 case Character.LOWERCASE_LETTER:
   3:                 case Character.DECIMAL_DIGIT_NUMBER:
   4:                 case Character.SPACE_SEPARATOR:
   5:                     result.append(ch);

View Full Code Here

MATH_SYMBOL

public static final byte MATH_SYMBOL
General category "Sm" in the Unicode specification.
Field Value:
25
Since:
1.1
Usages and Demos :

View More Examples of Character.MATH_SYMBOL
   1: 
   2:                 case Character.MATH_SYMBOL:
   3:                 case Character.OTHER_SYMBOL:
   4:                 case Character.CONTROL:
   5:                 case Character.COMBINING_SPACING_MARK:

View Full Code Here
   1:   static final byte[] SYMBOL = new byte[]
   2:   { Character.MATH_SYMBOL,
   3:     Character.CURRENCY_SYMBOL,
   4:         ...
   5:       if (name.equals("Sm"))
   6:           return new UnicodeCategoryHandler(Character.MATH_SYMBOL);
   7:       if (name.equals("Lm"))
   8:           return new UnicodeCategoryHandler(Character.MODIFIER_LETTER);
   9:       if (name.equals("Sk"))

View Full Code Here
   1:                 if (Character.isLetterOrDigit(e.getKeyChar())
   2:                     || (type == Character.MATH_SYMBOL)
   3:                     || (type == Character.OTHER_PUNCTUATION)
   4:                     || (type == Character.CURRENCY_SYMBOL)
   5:                     || (type == Character.START_PUNCTUATION)

View Full Code Here
   1:                     if (Character.isLetterOrDigit(e.getKeyChar())
   2:                             || (type == Character.MATH_SYMBOL)
   3:                             || (type == Character.OTHER_PUNCTUATION)
   4:                             || (type == Character.CURRENCY_SYMBOL)
   5:                             || (type == Character.START_PUNCTUATION)

View Full Code Here

MAX_CODE_POINT

public static final int MAX_CODE_POINT
The maximum value of a Unicode code point.
Field Value:
1114111
Since:
1.5

MAX_HIGH_SURROGATE

public static final char MAX_HIGH_SURROGATE
The maximum value of a Unicode high-surrogate code unit in the UTF-16 encoding. A high-surrogate is also known as a leading-surrogate.
Field Value:
'\udbff'
Since:
1.5

MAX_LOW_SURROGATE

public static final char MAX_LOW_SURROGATE
The maximum value of a Unicode low-surrogate code unit in the UTF-16 encoding. A low-surrogate is also known as a trailing-surrogate.
Field Value:
'\udfff'
Since:
1.5

MAX_RADIX

public static final int MAX_RADIX
The maximum radix available for conversion to and from strings. The constant value of this field is the largest value permitted for the radix argument in radix-conversion methods such as the digit method, the forDigit method, and the toString method of class Integer.
Field Value:
36
Usages and Demos :

View More Examples of Character.MAX_RADIX
   1:     private static final int STRING_LONG_LEN
   2:             = Long.toString(Long.MAX_VALUE, Character.MAX_RADIX).length() + 1;
   3: 
   4:         ...
   5: 
   6:             String s = Long.toString(value, Character.MAX_RADIX);
   7:             while ((sb.length() + s.length()) < STRING_LONG_LEN) {
   8:         ...
   9:         } else {
  10:             String s = Long.toString(value, Character.MAX_RADIX);
  11:             sb.append('1');

View Full Code Here
   1:     private static final int STRING_LONG_LEN
   2:             = Long.toString(Long.MAX_VALUE, Character.MAX_RADIX).length() + 1;
   3: 
   4:         ...
   5: 
   6:             String s = Long.toString(value, Character.MAX_RADIX);
   7:             while ((sb.length() + s.length()) < STRING_LONG_LEN) {
   8:         ...
   9:         } else {
  10:             String s = Long.toString(value, Character.MAX_RADIX);
  11:             sb.append('1');

View Full Code Here
   1:   {
   2:     return Long.toString(Math.abs(random.nextLong()) % MAX_RANDOM_LENGTH, Character.MAX_RADIX);
   3:   }
   4: 

View Full Code Here
   1:     private static final int DATE_LEN = Long.toString(1000L * 365 * 24 * 60 * 60 * 3000,
   2:             Character.MAX_RADIX).length();
   3: 
   4:         ...
   5:         char[] buffer = new char[DATE_LEN];
   6:         char c = Character.forDigit(Character.MAX_RADIX - 1, Character.MAX_RADIX);
   7:         for (int i = 0; i < DATE_LEN; i++) {
   8:         ...
   9: 
  10:         String s = Long.toString(time, Character.MAX_RADIX);

View Full Code Here
   1:     private static final int DATE_LEN = Long.toString(1000L * 365 * 24 * 60 * 60 * 3000,
   2:             Character.MAX_RADIX).length();
   3: 
   4:         ...
   5:         char[] buffer = new char[DATE_LEN];
   6:         char c = Character.forDigit(Character.MAX_RADIX - 1, Character.MAX_RADIX);
   7:         for (int i = 0; i < DATE_LEN; i++) {
   8:         ...
   9: 
  10:         String s = Long.toString(time, Character.MAX_RADIX);

View Full Code Here

MAX_SURROGATE

public static final char MAX_SURROGATE
The maximum value of a Unicode surrogate code unit in the UTF-16 encoding.
Field Value:
'\udfff'
Since:
1.5

MAX_VALUE

public static final char MAX_VALUE
The constant value of this field is the largest value of type char, '\uFFFF'.
Field Value:
'\uffff'
Since:
1.0.2
Usages and Demos :

View More Examples of Character.MAX_VALUE
   1:         break;
   2:       case Character.MAX_VALUE:
   3:         append("-1");
   4:         break;
   5:       default:

View Full Code Here
   1:       int start = Collections.binarySearch(currentData, prefix, this);
   2:       String last = prefix + Character.MAX_VALUE;
   3:       int end = Collections.binarySearch(currentData, last, this);
   4:       
   5:       if (start < 0)

View Full Code Here
   1:     
   2:     StringBuilder sb = new StringBuilder(Character.MAX_VALUE * 2);
   3:     
   4:         ...
   5:     for (int i = 0; i < Character.MAX_VALUE; i++) 
   6:       sb.append((char) i);
   7:     String all = sb.toString();
   8:     String ascii = sb.substring(0, 256);

View Full Code Here
   1:     {
   2:       final int maxChar = cs.name().startsWith("UTF-") ? Character.MAX_VALUE - 2: Character.MAX_VALUE;
   3:       bout.reset();
   4:         ...
   5:     {
   6:       super(Character.MAX_VALUE + 8192);
   7:     }
   8:     
   9:     byte[] getArray()

View Full Code Here
   1:   public static final BigInteger BIG_CHAR_MAX_VALUE =
   2:     BigInteger.valueOf(Character.MAX_VALUE);
   3: 
   4:         ...
   5:           return o;
   6:         } else if ((Character.MIN_VALUE <= l) && (Character.MAX_VALUE >= l)) {
   7:           return new Character((char)l);
   8:         ...
   9:       case FLAG_CHAR:
  10:         if ((Character.MIN_VALUE <= l) && (Character.MAX_VALUE >= l)) {
  11:           return new Character((char)l);

View Full Code Here

MIN_CODE_POINT

public static final int MIN_CODE_POINT
The minimum value of a Unicode code point.
Field Value:
0
Since:
1.5

MIN_HIGH_SURROGATE

public static final char MIN_HIGH_SURROGATE
The minimum value of a Unicode high-surrogate code unit in the UTF-16 encoding. A high-surrogate is also known as a leading-surrogate.
Field Value:
'\ud800'
Since:
1.5
Usages and Demos :

View More Examples of Character.MIN_HIGH_SURROGATE
   1:       int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT;
   2:       return (char) ((offset >>> 10) + Character.MIN_HIGH_SURROGATE);
   3:     }
   4:   }

View Full Code Here

MIN_LOW_SURROGATE

public static final char MIN_LOW_SURROGATE
The minimum value of a Unicode low-surrogate code unit in the UTF-16 encoding. A low-surrogate is also known as a trailing-surrogate.
Field Value:
'\udc00'
Since:
1.5
Usages and Demos :

View More Examples of Character.MIN_LOW_SURROGATE
   1:       int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT;
   2:       return (char) ((offset & 0x3ff) + Character.MIN_LOW_SURROGATE);
   3:     }
   4:   }
   5:   

View Full Code Here

MIN_RADIX

public static final int MIN_RADIX
The minimum radix available for conversion to and from strings. The constant value of this field is the smallest value permitted for the radix argument in radix-conversion methods such as the digit method, the forDigit method, and the toString method of class Integer.
Field Value:
2
Usages and Demos :

View More Examples of Character.MIN_RADIX
   1:     
   2:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
   3:     {
   4:         ...
   5:     
   6:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
   7:     {
   8:         ...
   9:     
  10:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
  11:     {

View Full Code Here
   1: 
   2:       for (int r = Character.MIN_RADIX; r <= Character.MAX_RADIX; r++)
   3:       {
   4:         ...
   5:       LineNumberReader in = new LineNumberReader(getResultReader());
   6:       for (int r = Character.MIN_RADIX; r <= Character.MAX_RADIX; r++)
   7:       {
   8:         ...
   9: 
  10:       for (int r = Character.MIN_RADIX; r <= Character.MAX_RADIX; r++)
  11:       {

View Full Code Here
   1:     CharBuffer buf = CharBuffer.allocate(33);
   2:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
   3:     {
   4:         ...
   5:     CharBuffer buf = CharBuffer.allocate(65);
   6:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
   7:     {
   8:         ...
   9:   {
  10:     for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++)
  11:     {

View Full Code Here
   1:     private static boolean validRadix ( int radix ) {
   2:         return ( radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX );
   3:     }
   4:     
   5:     

View Full Code Here
   1:   
   2:   private static final SimpleIntegerFormat[] instances = new SimpleIntegerFormat[(Character.MAX_RADIX - Character.MIN_RADIX) + 1];
   3:   
   4:         ...
   5:   {
   6:     if (radix < Character.MIN_RADIX) 
   7:         ...
   8:         throw new IllegalArgumentException("radix " + radix + " less than Character.MIN_RADIX");
   9:     if (radix > Character.MAX_RADIX) 

View Full Code Here

MIN_SUPPLEMENTARY_CODE_POINT

public static final int MIN_SUPPLEMENTARY_CODE_POINT
The minimum value of a supplementary code point.
Field Value:
65536
Since:
1.5
Usages and Demos :

View More Examples of Character.MIN_SUPPLEMENTARY_CODE_POINT
   1:   {
   2:     if (c < Character.MIN_SUPPLEMENTARY_CODE_POINT)
   3:     {
   4:         ...
   5:       throw new IllegalArgumentException("invalid codepoint: 0x" + Integer.toHexString(codePoint));
   6:     else if (codePoint < Character.MIN_SUPPLEMENTARY_CODE_POINT)
   7:       return 0;
   8:         ...
   9:     {
  10:       int offset = codePoint - Character.MIN_SUPPLEMENTARY_CODE_POINT;
  11:       return (char) ((offset >>> 10) + Character.MIN_HIGH_SURROGATE);

View Full Code Here

MIN_SURROGATE

public static final char MIN_SURROGATE
The minimum value of a Unicode surrogate code unit in the UTF-16 encoding.
Field Value:
'\ud800'
Since:
1.5

MIN_VALUE

public static final char MIN_VALUE
The constant value of this field is the smallest value of type char, '\u0000'.
Field Value:
'\u0000'
Since:
1.0.2
Usages and Demos :

View More Examples of Character.MIN_VALUE
   1:     switch (ch) {
   2:       case Character.MIN_VALUE:
   3:         append("0");
   4:         break;
   5:       case Character.MAX_VALUE:

View Full Code Here
   1:         char minChar = Character.MAX_VALUE;
   2:         char maxChar = Character.MIN_VALUE;
   3:         for (int i=0; i<files.length; i++) {
   4:             int unicodeValue = getUnicodeValue(files[i]);
   5:             if (unicodeValue != -1) {

View Full Code Here
   1:     synchronized (this.lock) {
   2:         if (this.contents == null) return Character.MIN_VALUE;
   3:         if (position < this.gapStart) {
   4:             return this.contents[position];
   5:         }

View Full Code Here
   1:         objects.add(Byte.MAX_VALUE);
   2:         objects.add(Character.MIN_VALUE);
   3:         objects.add(' ');
   4:         objects.add('z');
   5:         objects.add('1');

View Full Code Here
   1:     {
   2:         return (char) toNumber(Hex, Character.MIN_VALUE, Character.MAX_VALUE, "Character");
   3:     }
   4:     
   5:     public static int toInt

View Full Code Here

MODIFIER_LETTER

public static final byte MODIFIER_LETTER
General category "Lm" in the Unicode specification.
Field Value:
4
Since:
1.1
Usages and Demos :

View More Examples of Character.MODIFIER_LETTER
   1:                 case Character.OTHER_LETTER:
   2:                 case Character.MODIFIER_LETTER:
   3:                 case Character.UPPERCASE_LETTER:
   4:                 case Character.TITLECASE_LETTER:
   5:                 case Character.LOWERCASE_LETTER:

View Full Code Here
   1:     Character.TITLECASE_LETTER,
   2:     Character.MODIFIER_LETTER,
   3:     Character.OTHER_LETTER };
   4:         ...
   5:       if (name.equals("Lm"))
   6:           return new UnicodeCategoryHandler(Character.MODIFIER_LETTER);
   7:       if (name.equals("Sk"))
   8:           return new UnicodeCategoryHandler(Character.MODIFIER_SYMBOL);
   9:       if (name.equals("Mn"))

View Full Code Here
   1:         case Character.TITLECASE_LETTER:
   2:         case Character.MODIFIER_LETTER:
   3:         case Character.OTHER_LETTER:            return OTHER_LETTER;
   4:         case Character.DECIMAL_DIGIT_NUMBER:    return DIGIT;
   5:         default:                                return OTHER;

View Full Code Here

MODIFIER_SYMBOL

public static final byte MODIFIER_SYMBOL
General category "Sk" in the Unicode specification.
Field Value:
27
Since:
1.1
Usages and Demos :

View More Examples of Character.MODIFIER_SYMBOL
   1:                 case Character.LETTER_NUMBER:
   2:                 case Character.MODIFIER_SYMBOL:
   3:                 case Character.NON_SPACING_MARK:
   4:                 case Character.PARAGRAPH_SEPARATOR:
   5:                 case Character.PRIVATE_USE:

View Full Code Here
   1:     Character.CURRENCY_SYMBOL,
   2:     Character.MODIFIER_SYMBOL,
   3:     Character.OTHER_SYMBOL };
   4:         ...
   5:       if (name.equals("Sk"))
   6:           return new UnicodeCategoryHandler(Character.MODIFIER_SYMBOL);
   7:       if (name.equals("Mn"))
   8:           return new UnicodeCategoryHandler(Character.NON_SPACING_MARK);
   9:       if (name.equals("Lo"))

View Full Code Here
   1:                                 || (Character.getType(character) == Character.CURRENCY_SYMBOL)
   2:                                 || (Character.getType(character) == Character.MODIFIER_SYMBOL);
   3:         }
   4: 
   5:         static public boolean isWhiteSpace(char c) {

View Full Code Here
   1:             case Character.CURRENCY_SYMBOL:
   2:             case Character.MODIFIER_SYMBOL:
   3:           return isANYOF;
   4:         default:
   5:           break;

View Full Code Here
   1:                       case Character.CURRENCY_SYMBOL:
   2:                       case Character.MODIFIER_SYMBOL:
   3:                       case Character.OTHER_SYMBOL:
   4:                         type = CHAR_SYMBOL;
   5:                         break;

View Full Code Here

NON_SPACING_MARK

public static final byte NON_SPACING_MARK
General category "Mn" in the Unicode specification.
Field Value:
6
Since:
1.1
Usages and Demos :

View More Examples of Character.NON_SPACING_MARK
   1:                 case Character.MODIFIER_SYMBOL:
   2:                 case Character.NON_SPACING_MARK:
   3:                 case Character.PARAGRAPH_SEPARATOR:
   4:                 case Character.PRIVATE_USE:
   5:                 case Character.SURROGATE:

View Full Code Here
   1:   static final byte[] MARK = new byte[]
   2:   { Character.NON_SPACING_MARK,
   3:     Character.COMBINING_SPACING_MARK,
   4:         ...
   5:       if (name.equals("Mn"))
   6:           return new UnicodeCategoryHandler(Character.NON_SPACING_MARK);
   7:       if (name.equals("Lo"))
   8:           return new UnicodeCategoryHandler(Character.OTHER_LETTER);
   9:       if (name.equals("No"))

View Full Code Here

OTHER_LETTER

public static final byte OTHER_LETTER
General category "Lo" in the Unicode specification.
Field Value:
5
Since:
1.1
Usages and Demos :

View More Examples of Character.OTHER_LETTER
   1:                     break;
   2:                 case Character.OTHER_LETTER:
   3: 
   4: 
   5:                     return token;

View Full Code Here
   1: 
   2:             case Character.OTHER_LETTER:
   3:                 if (length>0) {
   4:                     bufferIndex--;
   5:                     offset--;

View Full Code Here
   1:                 case Character.OTHER_PUNCTUATION:
   2:                 case Character.OTHER_LETTER:
   3:                 case Character.MODIFIER_LETTER:
   4:                 case Character.UPPERCASE_LETTER:
   5:                 case Character.TITLECASE_LETTER:

View Full Code Here

OTHER_NUMBER

public static final byte OTHER_NUMBER
General category "No" in the Unicode specification.
Field Value:
11
Since:
1.1
Usages and Demos :

View More Examples of Character.OTHER_NUMBER
   1:                 case Character.UNASSIGNED:
   2:                 case Character.OTHER_NUMBER:
   3:                 default:
   4:                     if (!wasUnwanted) {
   5:                         result.append('\n');

View Full Code Here
   1:     Character.LETTER_NUMBER,
   2:     Character.OTHER_NUMBER };
   3:   
   4:         ...
   5:       if (name.equals("No"))
   6:           return new UnicodeCategoryHandler(Character.OTHER_NUMBER);
   7:       if (name.equals("Po"))
   8:           return new UnicodeCategoryHandler(Character.OTHER_PUNCTUATION);
   9:       if (name.equals("So"))

View Full Code Here
   1:   
   2:   static final Prop PROP_No = new Prop(Character.OTHER_NUMBER);
   3:         ...
   4:   static final PropNot PROP_NOT_No = new PropNot(Character.OTHER_NUMBER);
   5: 
   6:         ...
   7:         || value == Character.LETTER_NUMBER
   8:         || value == Character.OTHER_NUMBER) {
   9:       return offset + 1;

View Full Code Here
   1:                       case Character.LETTER_NUMBER:
   2:                       case Character.OTHER_NUMBER:
   3:                         type = CHAR_NUMBER;
   4:                         break;
   5:                       case Character.SPACE_SEPARATOR:

View Full Code Here

OTHER_PUNCTUATION

public static final byte OTHER_PUNCTUATION
General category "Po" in the Unicode specification.
Field Value:
24
Since:
1.1
Usages and Demos :

View More Examples of Character.OTHER_PUNCTUATION
   1:                 case Character.END_PUNCTUATION:
   2:                 case Character.OTHER_PUNCTUATION:
   3:                 case Character.OTHER_LETTER:
   4:                 case Character.MODIFIER_LETTER:
   5:                 case Character.UPPERCASE_LETTER:

View Full Code Here
   1:     Character.CONNECTOR_PUNCTUATION,
   2:     Character.OTHER_PUNCTUATION,
   3:     Character.INITIAL_QUOTE_PUNCTUATION,
   4:         ...
   5:       if (name.equals("Po"))
   6:           return new UnicodeCategoryHandler(Character.OTHER_PUNCTUATION);
   7:       if (name.equals("So"))
   8:           return new UnicodeCategoryHandler(Character.OTHER_SYMBOL);
   9:       if (name.equals("Zp"))

View Full Code Here
   1:                     || (type == Character.MATH_SYMBOL)
   2:                     || (type == Character.OTHER_PUNCTUATION)
   3:                     || (type == Character.CURRENCY_SYMBOL)
   4:                     || (type == Character.START_PUNCTUATION)
   5:                     || (type == Character.DASH_PUNCTUATION)) 

View Full Code Here
   1:                             || (type == Character.MATH_SYMBOL)
   2:                             || (type == Character.OTHER_PUNCTUATION)
   3:                             || (type == Character.CURRENCY_SYMBOL)
   4:                             || (type == Character.START_PUNCTUATION)
   5:                             || (type == Character.DASH_PUNCTUATION)) {

View Full Code Here

OTHER_SYMBOL

public static final byte OTHER_SYMBOL
General category "So" in the Unicode specification.
Field Value:
28
Since:
1.1
Usages and Demos :

View More Examples of Character.OTHER_SYMBOL
   1:                 case Character.MATH_SYMBOL:
   2:                 case Character.OTHER_SYMBOL:
   3:                 case Character.CONTROL:
   4:                 case Character.COMBINING_SPACING_MARK:
   5:                 case Character.ENCLOSING_MARK:

View Full Code Here
   1:     Character.MODIFIER_SYMBOL,
   2:     Character.OTHER_SYMBOL };
   3:   
   4:         ...
   5:       if (name.equals("So"))
   6:           return new UnicodeCategoryHandler(Character.OTHER_SYMBOL);
   7:       if (name.equals("Zp"))
   8:           return new UnicodeCategoryHandler(Character.PARAGRAPH_SEPARATOR);
   9:       if (name.equals("Co"))

View Full Code Here
   1:   
   2:   static final Prop PROP_So = new Prop(Character.OTHER_SYMBOL);
   3:         ...
   4:   static final PropNot PROP_NOT_So = new PropNot(Character.OTHER_SYMBOL);
   5: 
   6:         ...
   7:         || value == Character.MATH_SYMBOL
   8:         || value == Character.OTHER_SYMBOL) {
   9:       return offset + 1;

View Full Code Here
   1:                       case Character.MODIFIER_SYMBOL:
   2:                       case Character.OTHER_SYMBOL:
   3:                         type = CHAR_SYMBOL;
   4:                         break;
   5:                       default:

View Full Code Here
   1:                       case Character.MODIFIER_SYMBOL:
   2:                       case Character.OTHER_SYMBOL:
   3:                         type = CHAR_SYMBOL;
   4:                         break;
   5:                       default:

View Full Code Here

PARAGRAPH_SEPARATOR

public static final byte PARAGRAPH_SEPARATOR
General category "Zp" in the Unicode specification.
Field Value:
14
Since:
1.1
Usages and Demos :

View More Examples of Character.PARAGRAPH_SEPARATOR
   1:                 case Character.NON_SPACING_MARK:
   2:                 case Character.PARAGRAPH_SEPARATOR:
   3:                 case Character.PRIVATE_USE:
   4:                 case Character.SURROGATE:
   5:                 case Character.UNASSIGNED:

View Full Code Here
   1:     Character.LINE_SEPARATOR,
   2:     Character.PARAGRAPH_SEPARATOR };
   3:   
   4:         ...
   5:       if (name.equals("Zp"))
   6:           return new UnicodeCategoryHandler(Character.PARAGRAPH_SEPARATOR);
   7:       if (name.equals("Co"))
   8:           return new UnicodeCategoryHandler(Character.PRIVATE_USE);
   9:       if (name.equals("Zs"))

View Full Code Here
   1:                       case Character.LINE_SEPARATOR:
   2:                       case Character.PARAGRAPH_SEPARATOR:
   3:                         type = CHAR_SEPARATOR;
   4:                         break;
   5:                       case Character.CONTROL:

View Full Code Here
   1:                       case Character.LINE_SEPARATOR:
   2:                       case Character.PARAGRAPH_SEPARATOR:
   3:                         type = CHAR_SEPARATOR;
   4:                         break;
   5:                       case Character.CONTROL:

View Full Code Here

PRIVATE_USE

public static final byte PRIVATE_USE
General category "Co" in the Unicode specification.
Field Value:
18
Since:
1.1
Usages and Demos :

View More Examples of Character.PRIVATE_USE
   1:                 case Character.PARAGRAPH_SEPARATOR:
   2:                 case Character.PRIVATE_USE:
   3:                 case Character.SURROGATE:
   4:                 case Character.UNASSIGNED:
   5:                 case Character.OTHER_NUMBER:

View Full Code Here
   1:     Character.FORMAT,
   2:     Character.PRIVATE_USE,
   3:     Character.SURROGATE,
   4:         ...
   5:       if (name.equals("Co"))
   6:           return new UnicodeCategoryHandler(Character.PRIVATE_USE);
   7:       if (name.equals("Zs"))
   8:           return new UnicodeCategoryHandler(Character.SPACE_SEPARATOR);
   9:       if (name.equals("Ps"))

View Full Code Here
   1:                       case Character.SURROGATE:
   2:                       case Character.PRIVATE_USE:
   3:                       case Character.UNASSIGNED:
   4:                         type = CHAR_OTHER;
   5:                         break;

View Full Code Here
   1:                       case Character.SURROGATE:
   2:                       case Character.PRIVATE_USE:
   3:                       case Character.UNASSIGNED:
   4:                         type = CHAR_OTHER;
   5:                         break;

View Full Code Here

SIZE

public static final int SIZE
The number of bits used to represent a char value in unsigned binary form.
Field Value:
16
Since:
1.5
Usages and Demos :

View More Examples of Character.SIZE
   1: 
   2:         static final int SIZE = (Character.SIZE / Byte.SIZE) + (Integer.SIZE / Byte.SIZE);
   3: 
   4:         ...
   5:         public int getStoredLength() {
   6:             int n = Character.SIZE / Byte.SIZE;
   7:             n += Integer.SIZE / Byte.SIZE;
   8:             n += path.getStoredLength();
   9:             n += Short.SIZE / Byte.SIZE;

View Full Code Here

SPACE_SEPARATOR

public static final byte SPACE_SEPARATOR
General category "Zs" in the Unicode specification.
Field Value:
12
Since:
1.1
Usages and Demos :

View More Examples of Character.SPACE_SEPARATOR
   1:                 case Character.DECIMAL_DIGIT_NUMBER:
   2:                 case Character.SPACE_SEPARATOR:
   3:                     result.append(ch);
   4:                     wasUnwanted = false;
   5:                     break;

View Full Code Here
   1:   static final byte[] SEPARATOR = new byte[]
   2:   { Character.SPACE_SEPARATOR,
   3:     Character.LINE_SEPARATOR,
   4:         ...
   5:       if (name.equals("Zs"))
   6:           return new UnicodeCategoryHandler(Character.SPACE_SEPARATOR);
   7:       if (name.equals("Ps"))
   8:           return new UnicodeCategoryHandler(Character.START_PUNCTUATION);
   9:       if (name.equals("Cs"))

View Full Code Here
   1:                 || c == '\u00A0'
   2:                 || Character.getType((char)c) == Character.SPACE_SEPARATOR);
   3:     }
   4: 
   5:     public static boolean isJSLineTerminator(int c) {

View Full Code Here
   1:   
   2:   static final Prop PROP_Zs = new Prop(Character.SPACE_SEPARATOR);
   3:         ...
   4:   static final PropNot PROP_NOT_Zs = new PropNot(Character.SPACE_SEPARATOR);
   5:   
   6:         ...
   7:         || value == Character.PARAGRAPH_SEPARATOR
   8:         || value == Character.SPACE_SEPARATOR) {
   9:       return offset + 1;

View Full Code Here

START_PUNCTUATION

public static final byte START_PUNCTUATION
General category "Ps" in the Unicode specification.
Field Value:
21
Since:
1.1
Usages and Demos :

View More Examples of Character.START_PUNCTUATION
   1:                 case Character.DASH_PUNCTUATION:
   2:                 case Character.START_PUNCTUATION:
   3:                 case Character.END_PUNCTUATION:
   4:                 case Character.OTHER_PUNCTUATION:
   5:                 case Character.OTHER_LETTER:

View Full Code Here
   1:   { Character.DASH_PUNCTUATION,
   2:     Character.START_PUNCTUATION,
   3:     Character.END_PUNCTUATION,
   4:         ...
   5:       if (name.equals("Ps"))
   6:           return new UnicodeCategoryHandler(Character.START_PUNCTUATION);
   7:       if (name.equals("Cs"))
   8:           return new UnicodeCategoryHandler(Character.SURROGATE);
   9:       if (name.equals("Lt"))

View Full Code Here
   1:                     || (type == Character.CURRENCY_SYMBOL)
   2:                     || (type == Character.START_PUNCTUATION)
   3:                     || (type == Character.DASH_PUNCTUATION)) 
   4:                     getTextField().replaceSelection(Character.toString(e.getKeyChar()));                    
   5:                 else if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE)

View Full Code Here
   1:                                 || (Character.getType(character) == Character.DASH_PUNCTUATION)
   2:                                 || (Character.getType(character) == Character.START_PUNCTUATION)
   3:                                 || (Character.getType(character) == Character.END_PUNCTUATION)
   4:                                 || (Character.getType(character) == Character.CONNECTOR_PUNCTUATION)
   5:                                 || (Character.getType(character) == Character.CURRENCY_SYMBOL)

View Full Code Here
   1:                             || (type == Character.CURRENCY_SYMBOL)
   2:                             || (type == Character.START_PUNCTUATION)
   3:                             || (type == Character.DASH_PUNCTUATION)) {
   4: 
   5:                         getSelectTextField().replaceSelection(

View Full Code Here

SURROGATE

public static final byte SURROGATE
General category "Cs" in the Unicode specification.
Field Value:
19
Since:
1.1
Usages and Demos :

View More Examples of Character.SURROGATE
   1:                 case Character.PRIVATE_USE:
   2:                 case Character.SURROGATE:
   3:                 case Character.UNASSIGNED:
   4:                 case Character.OTHER_NUMBER:
   5:                 default:

View Full Code Here
   1:     Character.PRIVATE_USE,
   2:     Character.SURROGATE,
   3:     Character.UNASSIGNED };
   4:         ...
   5:       if (name.equals("Cs"))
   6:           return new UnicodeCategoryHandler(Character.SURROGATE);
   7:       if (name.equals("Lt"))
   8:           return new UnicodeCategoryHandler(Character.TITLECASE_LETTER);
   9:       if (name.equals("Cn"))

View Full Code Here
   1: 
   2:   static final Prop PROP_Cs = new Prop(Character.SURROGATE);
   3:         ...
   4:   static final PropNot PROP_NOT_Cs = new PropNot(Character.SURROGATE);
   5: 
   6:         ...
   7:         || value == Character.PRIVATE_USE
   8:         || value == Character.SURROGATE) {
   9:       return offset + 1;

View Full Code Here
   1:                       case Character.FORMAT:
   2:                       case Character.SURROGATE:
   3:                       case Character.PRIVATE_USE:
   4:                       case Character.UNASSIGNED:
   5:                         type = CHAR_OTHER;

View Full Code Here
   1:                       case Character.FORMAT:
   2:                       case Character.SURROGATE:
   3:                       case Character.PRIVATE_USE:
   4:                       case Character.UNASSIGNED:
   5:                         type = CHAR_OTHER;

View Full Code Here

TITLECASE_LETTER

public static final byte TITLECASE_LETTER
General category "Lt" in the Unicode specification.
Field Value:
3
Since:
1.1
Usages and Demos :

View More Examples of Character.TITLECASE_LETTER
   1:                 case Character.UPPERCASE_LETTER:
   2:                 case Character.TITLECASE_LETTER:
   3:                 case Character.LOWERCASE_LETTER:
   4:                 case Character.DECIMAL_DIGIT_NUMBER:
   5:                 case Character.SPACE_SEPARATOR:

View Full Code Here
   1:     Character.UPPERCASE_LETTER,
   2:     Character.TITLECASE_LETTER,
   3:     Character.MODIFIER_LETTER,
   4:         ...
   5:       if (name.equals("Lt"))
   6:           return new UnicodeCategoryHandler(Character.TITLECASE_LETTER);
   7:       if (name.equals("Cn"))
   8:           return new UnicodeCategoryHandler(Character.UNASSIGNED);
   9:       if (name.equals("Lu"))

View Full Code Here
   1:         case Character.LOWERCASE_LETTER:        return LOWER_LETTER;
   2:         case Character.TITLECASE_LETTER:
   3:         case Character.MODIFIER_LETTER:
   4:         case Character.OTHER_LETTER:            return OTHER_LETTER;
   5:         case Character.DECIMAL_DIGIT_NUMBER:    return DIGIT;

View Full Code Here

TYPE

public static final Class TYPE
The Class instance representing the primitive type char.
Since:
1.1
Usages and Demos :

View More Examples of TYPE
   1: {
   2:     private final Character mValue;
   3: 
   4:         ...
   5: 
   6:         mValue = new Character(accessPath.charAt(startIndex));
   7:         parseCtx.i = startIndex + 1;
   8:         ...
   9:     {
  10:         return Character.TYPE;
  11:     }

View Full Code Here
   1:         if (type == Boolean.class) {
   2:             return Boolean.TYPE;
   3:         }
   4:         ...
   5:         else if (type == Byte.class) {
   6:             return Byte.TYPE;
   7:         }
   8:         ...
   9:         else if (type == Character.class) {
  10:         ...
  11:             return Character.TYPE;

View Full Code Here
   1:             return str;
   2:         } else if(type.equals(Boolean.TYPE.getName()) || type.equals(Boolean.class.getName())) {
   3:             return Boolean.valueOf(str);
   4:         ...
   5:         } else if(type.equals(Byte.TYPE.getName()) || type.equals(Byte.class.getName())) {
   6:             return Byte.valueOf(str);
   7:         ...
   8:         } else if(type.equals(Character.TYPE.getName()) || type.equals(Character.class.getName())) {
   9:         ...
  10:             return new Character(str.charAt(0));

View Full Code Here
   1:   public Class loadClass(String primitiveName){
   2:     if(primitiveName.equals(Boolean.TYPE.getName()))
   3:         ...
   4:       return Boolean.TYPE;
   5:         ...
   6:     if(primitiveName.equals(Character.TYPE.getName()))
   7:         ...
   8:       return Character.TYPE;

View Full Code Here
   1:       if(className.equals("int")) {
   2:         return java.lang.Integer.TYPE; 
   3:       }
   4:         ...
   5:       else if(className.equals("double")) {
   6:         return java.lang.Double.TYPE; 
   7:       }
   8:         ...
   9:       else if(className.equals("long")) {
  10:         return java.lang.Long.TYPE; 
  11:       } 
  12:         ...
  13:       else if(className.equals("char")) {
  14:         return java.lang.Character.TYPE; 

View Full Code Here

UNASSIGNED

public static final byte UNASSIGNED
General category "Cn" in the Unicode specification.
Field Value:
0
Since:
1.1
Usages and Demos :

View More Examples of Character.UNASSIGNED
   1:                 case Character.SURROGATE:
   2:                 case Character.UNASSIGNED:
   3:                 case Character.OTHER_NUMBER:
   4:                 default:
   5:                     if (!wasUnwanted) {

View Full Code Here
   1:     Character.SURROGATE,
   2:     Character.UNASSIGNED };
   3: 
   4:         ...
   5:       if (name.equals("Cn"))
   6:           return new UnicodeCategoryHandler(Character.UNASSIGNED);
   7:       if (name.equals("Lu"))
   8:           return new UnicodeCategoryHandler(Character.UPPERCASE_LETTER);
   9:       throw new REException("unsupported name " + name, REException.REG_ESCAPE, 0);

View Full Code Here
   1:                       case Character.PRIVATE_USE:
   2:                       case Character.UNASSIGNED:
   3:                         type = CHAR_OTHER;
   4:         ...
   5:                     ranges[type].addRange(i, i);
   6:                 ranges[Character.UNASSIGNED].addRange(0x10000, Token.UTF16_MAX);
   7: 
   8:                 Token.categories2 = new Hashtable();
   9:                 for (int i = 0;  i < ranges.length;  i ++) {

View Full Code Here
   1:                       case Character.PRIVATE_USE:
   2:                       case Character.UNASSIGNED:
   3:                         type = CHAR_OTHER;
   4:         ...
   5:                     ranges[type].addRange(i, i);
   6:                 ranges[Character.UNASSIGNED].addRange(0x10000, Token.UTF16_MAX);
   7: 
   8:                 for (int i = 0;  i < ranges.length;  i ++) {
   9:                     if (Token.categoryNames[i] != null) {

View Full Code Here

UPPERCASE_LETTER

public static final byte UPPERCASE_LETTER
General category "Lu" in the Unicode specification.
Field Value:
1
Since:
1.1
Usages and Demos :

View More Examples of Character.UPPERCASE_LETTER
   1:                 case Character.LOWERCASE_LETTER:
   2:                 case Character.UPPERCASE_LETTER:
   3: 
   4:                     if (text.length()>1) {
   5:                         return token;

View Full Code Here
   1:             case Character.LOWERCASE_LETTER:
   2:             case Character.UPPERCASE_LETTER:
   3:                 push(c);
   4:                 if (length == MAX_WORD_LEN) return flush();
   5:                 break;

View Full Code Here
   1:                 case Character.MODIFIER_LETTER:
   2:                 case Character.UPPERCASE_LETTER:
   3:                 case Character.TITLECASE_LETTER:
   4:                 case Character.LOWERCASE_LETTER:
   5:                 case Character.DECIMAL_DIGIT_NUMBER:

View Full Code Here

Constructor Details

Character

public Character(char value)
Constructs a newly allocated Character object that represents the specified char value.
Parameters:
value - the value to be represented by the Character object.
Usages and Demos :

View More Examples of Character(char value)
   1:   {
   2:     return "new Character(" + value + ")";
   3:   }
   4:         ...
   5: 
   6:     return rs.wasNull() ? null : new Character(v.charAt(0));
   7:   }
   8: 
   9:   public static char toChar(String value)

View Full Code Here
   1:     else if (char.class.equals(cl))
   2:       return "new Character(" + value + ")";
   3:     else if (float.class.equals(cl))
   4:       return "new Float(" + value + ")";
   5:     else if (double.class.equals(cl))

View Full Code Here
   1:     if ("".equals(orient)) 
   2:       { this.orientation = new Character("-".charAt(0)); } 
   3:     else 
   4:         ...
   5:       { this.orientation = new Character(orient.charAt(0)); }
   6:   }
   7:         ...
   8:     if ("".equals(phase)) 
   9:       { this.phase = new Character("-".charAt(0)); } 
  10:     else 

View Full Code Here
   1:                 {
   2:                 oldValExpr  = "new Character( "+ oldValExpr +" )";
   3:         ...
   4:                 newValExpr  = "new Character( "+ newValExpr +" )";
   5:                 }
   6:             else if (propType == short.class)
   7:                 {

View Full Code Here
   1:     else if (char.class.equals(cl))
   2:       print("new Character(" + name + ")");
   3:     else if (int.class.equals(cl))
   4:       print("new Integer(" + name + ")");
   5:     else if (long.class.equals(cl))

View Full Code Here

Method Details

boolean isJavaLetter

public static @Deprecated boolean isJavaLetter(char ch)

Deprecated. Replaced by isJavaIdentifierStart(char).

Determines if the specified character is permissible as the first character in a Java identifier.

A character may start a Java identifier if and only if one of the following is true:

  • isLetter(ch) returns true
  • getType(ch) returns LETTER_NUMBER
  • ch is a currency symbol (such as "$")
  • ch is a connecting punctuation character (such as "_").
Parameters:
ch - the character to be tested.
Returns:
true if the character may start a Java identifier; false otherwise.
Since:
1.02

boolean isJavaLetterOrDigit

public static @Deprecated boolean isJavaLetterOrDigit(char ch)

Deprecated. Replaced by isJavaIdentifierPart(char).

Determines if the specified character may be part of a Java identifier as other than the first character.

A character may be part of a Java identifier if and only if any of the following are true:

  • it is a letter
  • it is a currency symbol (such as '$')
  • it is a connecting punctuation character (such as '_')
  • it is a digit
  • it is a numeric letter (such as a Roman numeral character)
  • it is a combining mark
  • it is a non-spacing mark
  • isIdentifierIgnorable returns true for the character.
Parameters:
ch - the character to be tested.
Returns:
true if the character may be part of a Java identifier; false otherwise.
Since:
1.02

boolean isSpace

public static @Deprecated boolean isSpace(char ch)

Deprecated. Replaced by isWhitespace(char).

Determines if the specified character is ISO-LATIN-1 white space. This method returns true for the following five characters only:
'\t''\u0009'HORIZONTAL TABULATION
'\n''\u000A'NEW LINE
'\f''\u000C'FORM FEED
'\r''\u000D'CARRIAGE RETURN
' ''\u0020'SPACE
Parameters:
ch - the character to be tested.
Returns:
true if the character is ISO-LATIN-1 white space; false otherwise.

charCount

public static int charCount(int codePoint)
Determines the number of char values needed to represent the specified character (Unicode code point). If the specified character is equal to or greater than 0x10000, then the method returns 2. Otherwise, the method returns 1.

This method doesn't validate the specified character to be a valid Unicode code point. The caller must validate the character value using isValidCodePoint if necessary.

Parameters:
codePoint - the character (Unicode code point) to be tested.
Returns:
2 if the character is a valid supplementary character; 1 otherwise.
Since:
1.5
Usages and Demos :

View More Examples of charCount(int codePoint)
   1:   {
   2:     if (Character.isHighSurrogate(c)) {
   3:       throw new IllegalArgumentException();
   4:         ...
   5:   {
   6:     if (! Character.isValidCodePoint(codePoint)) {
   7:       throw new IllegalArgumentException();
   8:         ...
   9:   {
  10:     if (! Character.isSurrogatePair(high, low)) {
  11:       throw new IllegalArgumentException();
  12:         ...
  13:   {
  14:     return Character.charCount(codePoint_);

View Full Code Here
   1:     {
   2:       char le = Character.toLowerCase(e);
   3:         ...
   4:       char ue = Character.toUpperCase(e);
   5:       if (le == ue)
   6:         ...
   7:     {
   8:       char l = Character.toLowerCase(oldChar);
   9:       char u = Character.toUpperCase(oldChar);
  10:         ...
  11:               {
  12:                 int lowerLen = Character.charCount(lowers);

View Full Code Here
   1:     {
   2:       char le = Character.toLowerCase(e);
   3:         ...
   4:       char ue = Character.toUpperCase(e);
   5:       if (le == ue)
   6:         ...
   7:     {
   8:       char l = Character.toLowerCase(oldChar);
   9:       char u = Character.toUpperCase(oldChar);
  10:         ...
  11:               {
  12:                 int lowerLen = Character.charCount(lowers);

View Full Code Here
   1:     char high = this.elements[index];
   2:     if (Character.isHighSurrogate(high) && (index < this.size - 1))
   3:     {
   4:         ...
   5:       char low = this.elements[index + 1];
   6:       if (Character.isLowSurrogate(low))
   7:       {
   8:         ...
   9:         clear(index, index + 2);
  10:         return Character.toCodePoint(high, low);
  11:       }
  12:         ...
  13:               {
  14:                 int lowerLen = Character.charCount(lowers);

View Full Code Here
   1: 
   2: public abstract class AbstractCharList extends AbstractTList<Character> implements CharList
   3: {
   4:         ...
   5:         insert(index, ((Boolean) v).booleanValue());
   6:       else if (c == Character.class)
   7:         ...
   8:         add(index, ((Character) v).charValue());
   9:       else if (c == Float.class)
  10:         ...
  11:       if (ignoreCase)
  12:         charCount = Character.charCount(getCodePoint(a));

View Full Code Here

charValue

public char charValue()
Returns the value of this Character object.
Returns:
the primitive char value represented by this object.
Usages and Demos :

View More Examples of charValue()
   1:     {
   2:         Character aAsCharacter = (Character)objectA;
   3:         ...
   4:         Character bAsCharacter = (Character)objectB;
   5:         this.initializeCollator();
   6:         ...
   7:         return collator.compare(
   8:             Character.toString(aAsCharacter.charValue()),
   9:         ...
  10:             Character.toString(bAsCharacter.charValue()));

View Full Code Here
   1:                 while (ch != -1) {
   2:                     Character merkki = new Character((char) ch);
   3:         ...
   4:                     str += merkki.charValue();
   5:                     ch = reader.read();
   6:                 }
   7:             } catch (Exception ex) {

View Full Code Here
   1:   {
   2:     return new Character('(');
   3:   }
   4:         ...
   5:   {
   6:     return new Character('[');
   7:   }
   8:         ...
   9:   {
  10:     return new Character(node.getStarter());
  11:   }
  12:         ...
  13:     }
  14:     return s.charValue();

View Full Code Here
   1: 
   2:     private static Hashtable<String, Character> table;
   3: 
   4:         ...
   5:             }
   6:         Hashtable<String, Character> table = getTable();
   7:         ...
   8:         Character c = table.get(entity);
   9:         ...
  10:         return c != null ? c.charValue() : 0;

View Full Code Here
   1: {
   2:    private static HashMap<String, Character> entities = new HashMap<String, Character>();
   3: 
   4:         ...
   5:       if (end == -1)
   6:          throw new IllegalArgumentException("Invalid character reference");
   7: 
   8:         ...
   9: 
  10:       builder.append(c.charValue());

View Full Code Here

codePointAt

public static int codePointAt(char[] a,
                              int index)
Returns the code point at the given index of the char array. If the char value at the given index in the char array is in the high-surrogate range, the following index is less than the length of the char array, and the char value at the following index is in the low-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at the given index is returned.
Parameters:
a - the char array
index - the index to the char values (Unicode code units) in the char array to be converted
Returns:
the Unicode code point at the given index
Throws:
NullPointerException - if a is null.
IndexOutOfBoundsException - if the value index is negative or not less than the length of the char array.
Since:
1.5

codePointAt

public static int codePointAt(char[] a,
                              int index,
                              int limit)
Returns the code point at the given index of the char array, where only array elements with index less than limit can be used. If the char value at the given index in the char array is in the high-surrogate range, the following index is less than the limit, and the char value at the following index is in the low-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at the given index is returned.
Parameters:
a - the char array
index - the index to the char values (Unicode code units) in the char array to be converted
limit - the index after the last array element that can be used in the char array
Returns:
the Unicode code point at the given index
Throws:
NullPointerException - if a is null.
IndexOutOfBoundsException - if the index argument is negative or not less than the limit argument, or if the limit argument is negative or greater than the length of the char array.
Since:
1.5

codePointAt

public static int codePointAt(CharSequence seq,
                              int index)
Returns the code point at the given index of the CharSequence. If the char value at the given index in the CharSequence is in the high-surrogate range, the following index is less than the length of the CharSequence, and the char value at the following index is in the low-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at the given index is returned.
Parameters:
seq - a sequence of char values (Unicode code units)
index - the index to the char values (Unicode code units) in seq to be converted
Returns:
the Unicode code point at the given index
Throws:
NullPointerException - if seq is null.
IndexOutOfBoundsException - if the value index is negative or not less than seq.length().
Since:
1.5

codePointBefore

public static int codePointBefore(char[] a,
                                  int index)
Returns the code point preceding the given index of the char array. If the char value at (index - 1) in the char array is in the low-surrogate range, (index - 2) is not negative, and the char value at (index - 2) in the char array is in the high-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at (index - 1) is returned.
Parameters:
a - the char array
index - the index following the code point that should be returned
Returns:
the Unicode code point value before the given index.
Throws:
NullPointerException - if a is null.
IndexOutOfBoundsException - if the index argument is less than 1 or greater than the length of the char array
Since:
1.5

codePointBefore

public static int codePointBefore(char[] a,
                                  int index,
                                  int start)
Returns the code point preceding the given index of the char array, where only array elements with index greater than or equal to start can be used. If the char value at (index - 1) in the char array is in the low-surrogate range, (index - 2) is not less than start, and the char value at (index - 2) in the char array is in the high-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at (index - 1) is returned.
Parameters:
a - the char array
index - the index following the code point that should be returned
start - the index of the first array element in the char array
Returns:
the Unicode code point value before the given index.
Throws:
NullPointerException - if a is null.
IndexOutOfBoundsException - if the index argument is not greater than the start argument or is greater than the length of the char array, or if the start argument is negative or not less than the length of the char array.
Since:
1.5

codePointBefore

public static int codePointBefore(CharSequence seq,
                                  int index)
Returns the code point preceding the given index of the CharSequence. If the char value at (index - 1) in the CharSequence is in the low-surrogate range, (index - 2) is not negative, and the char value at (index - 2) in the CharSequence is in the high-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at (index - 1) is returned.
Parameters:
seq - the CharSequence instance
index - the index following the code point that should be returned
Returns:
the Unicode code point value before the given index.
Throws:
NullPointerException - if seq is null.
IndexOutOfBoundsException - if the index argument is less than 1 or greater than seq.length().
Since:
1.5

codePointCount

public static int codePointCount(char[] a,
                                 int offset,
                                 int count)
Returns the number of Unicode code points in a subarray of the char array argument. The offset argument is the index of the first char of the subarray and the count argument specifies the length of the subarray in chars. Unpaired surrogates within the subarray count as one code point each.
Parameters:
a - the char array
offset - the index of the first char in the given char array
count - the length of the subarray in chars
Returns:
the number of Unicode code points in the specified subarray
Throws:
NullPointerException - if a is null.
IndexOutOfBoundsException - if offset or count is negative, or if offset + count is larger than the length of the given array.
Since:
1.5

codePointCount

public static int codePointCount(CharSequence seq,
                                 int beginIndex,
                                 int endIndex)
Returns the number of Unicode code points in the text range of the specified char sequence. The text range begins at the specified beginIndex and extends to the char at index endIndex - 1. Thus the length (in chars) of the text range is endIndex-beginIndex. Unpaired surrogates within the text range count as one code point each.
Parameters:
seq - the char sequence
beginIndex - the index to the first char of the text range.
endIndex - the index after the last char of the text range.
Returns:
the number of Unicode code points in the specified text range
Throws:
NullPointerException - if seq is null.
IndexOutOfBoundsException - if the beginIndex is negative, or endIndex is larger than the length of the given sequence, or beginIndex is larger than endIndex.
Since:
1.5

compareTo

public int compareTo(Character anotherCharacter)
Compares two Character objects numerically.
Parameters:
anotherCharacter - the Character to be compared.
Returns:
the value 0 if the argument Character is equal to this Character; a value less than 0 if this Character is numerically less than the Character argument; and a value greater than 0 if this Character is numerically greater than the Character argument (unsigned comparison). Note that this is strictly a numerical comparison; it is not locale-dependent.
Since:
1.2

digit

public static int digit(char ch,
                        int radix)
Returns the numeric value of the character ch in the specified radix.

If the radix is not in the range MIN_RADIX <= radix <= MAX_RADIX or if the value of ch is not a valid digit in the specified radix, -1 is returned. A character is a valid digit if at least one of the following is true:

  • The method isDigit is true of the character and the Unicode decimal digit value of the character (or its single-character decomposition) is less than the specified radix. In this case the decimal digit value is returned.
  • The character is one of the uppercase Latin letters 'A' through 'Z' and its code is less than radix + 'A' - 10. In this case, ch - 'A' + 10 is returned.
  • The character is one of the lowercase Latin letters 'a' through 'z' and its code is less than radix + 'a' - 10. In this case, ch - 'a' + 10 is returned.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the digit(int,int) method.

Parameters:
ch - the character to be converted.
radix - the radix.
Returns:
the numeric value represented by the character in the specified radix.
Usages and Demos :

View More Examples of digit(char ch,int radix)
   1:         char ch = version.charAt(2);
   2:         return Character.digit(ch, 10);
   3:     }
   4:     
   5:     public static void setDefaultPropImages(URL[] is) {

View Full Code Here
   1:     public static int hexValueOf(char c) {
   2:         return Character.digit(c, 16);
   3:     }
   4:         ...
   5:     public static int decValueOf(char c) {
   6:         return Character.digit(c, 10);
   7:     }
   8:         ...
   9:     public static int octValueOf(char c) {
  10:         return Character.digit(c, 8);
  11:     }

View Full Code Here
   1:         private boolean isOctalDigit(char ch) {
   2:             return Character.digit(ch, 8) != -1;
   3:         }
   4:         ...
   5:         private boolean isHexDigit(char ch) {
   6:             return Character.digit(ch, 16) != -1;
   7:         }
   8:         
   9:         protected int getEscapeValue(String string) {

View Full Code Here
   1:     }
   2:     return Character.isJavaIdentifierPart(c);
   3: }
   4:         ...
   5:         case 0 :
   6:             return Character.isJavaIdentifierPart((char) codePoint);
   7:         case 1 :
   8:         ...
   9:     }
  10:     return Character.isJavaIdentifierStart(c);
  11: }    
  12:         ...
  13:     }
  14:     return Character.digit(c, radix);

View Full Code Here
   1:            colDel == '.' ||
   2:            Character.isSpaceChar(colDel) ||  
   3:         ...
   4:            Character.isSpaceChar(charDel) ||
   5:         ...
   6:            Character.digit(colDel, 16) != -1 ||
   7:         ...
   8:            Character.digit(charDel, 16) != -1 )

View Full Code Here

digit

public static int digit(int codePoint,
                        int radix)
Returns the numeric value of the specified character (Unicode code point) in the specified radix.

If the radix is not in the range MIN_RADIX <= radix <= MAX_RADIX or if the character is not a valid digit in the specified radix, -1 is returned. A character is a valid digit if at least one of the following is true:

  • The method isDigit(codePoint) is true of the character and the Unicode decimal digit value of the character (or its single-character decomposition) is less than the specified radix. In this case the decimal digit value is returned.
  • The character is one of the uppercase Latin letters 'A' through 'Z' and its code is less than radix + 'A' - 10. In this case, ch - 'A' + 10 is returned.
  • The character is one of the lowercase Latin letters 'a' through 'z' and its code is less than radix + 'a' - 10. In this case, ch - 'a' + 10 is returned.
Parameters:
codePoint - the character (Unicode code point) to be converted.
radix - the radix.
Returns:
the numeric value represented by the character in the specified radix.
Since:
1.5
Usages and Demos :

View More Examples of digit(int codePoint,int radix)
   1:         char ch = version.charAt(2);
   2:         return Character.digit(ch, 10);
   3:     }
   4:     
   5:     public static void setDefaultPropImages(URL[] is) {

View Full Code Here
   1:     public static int hexValueOf(char c) {
   2:         return Character.digit(c, 16);
   3:     }
   4:         ...
   5:     public static int decValueOf(char c) {
   6:         return Character.digit(c, 10);
   7:     }
   8:         ...
   9:     public static int octValueOf(char c) {
  10:         return Character.digit(c, 8);
  11:     }

View Full Code Here
   1:         private boolean isOctalDigit(char ch) {
   2:             return Character.digit(ch, 8) != -1;
   3:         }
   4:         ...
   5:         private boolean isHexDigit(char ch) {
   6:             return Character.digit(ch, 16) != -1;
   7:         }
   8:         
   9:         protected int getEscapeValue(String string) {

View Full Code Here
   1:     }
   2:     return Character.isJavaIdentifierPart(c);
   3: }
   4:         ...
   5:         case 0 :
   6:             return Character.isJavaIdentifierPart((char) codePoint);
   7:         case 1 :
   8:         ...
   9:     }
  10:     return Character.isJavaIdentifierStart(c);
  11: }    
  12:         ...
  13:     }
  14:     return Character.digit(c, radix);

View Full Code Here
   1:            colDel == '.' ||
   2:            Character.isSpaceChar(colDel) ||  
   3:         ...
   4:            Character.isSpaceChar(charDel) ||
   5:         ...
   6:            Character.digit(colDel, 16) != -1 ||
   7:         ...
   8:            Character.digit(charDel, 16) != -1 )

View Full Code Here

equals

public boolean equals(Object obj)
Compares this object against the specified object. The result is true if and only if the argument is not null and is a Character object that represents the same char value as this object.
Overrides:
equals in interface Object
Parameters:
obj - the object to compare with.
Returns:
true if the objects are the same; false otherwise.
Usages and Demos :

View More Examples of equals(Object obj)
   1: 
   2:     if (encoding.equals(ASCII)) {
   3:         return CHAR_ASCII;
   4:         ...
   5:     } else if (encoding.equals(LATIN1)) {
   6:         return CHAR_LATIN1;
   7:         ...
   8:     } else if (encoding.equals(UTF8)) {
   9:         return CHAR_UTF8;
  10:         ...
  11:                 "v1_charcode_error",
  12:                 new Object[] {new Character(c), encoding});

View Full Code Here

forDigit

public static char forDigit(int digit,
                            int radix)
Determines the character representation for a specific digit in the specified radix. If the value of radix is not a valid radix, or the value of digit is not a valid digit in the specified radix, the null character ('\u0000') is returned.

The radix argument is valid if it is greater than or equal to MIN_RADIX and less than or equal to MAX_RADIX. The digit argument is valid if 0 <=digit < radix.

If the digit is less than 10, then '0' + digit is returned. Otherwise, the value 'a' + digit - 10 is returned.

Parameters:
digit - the number to convert to a character.
radix - the radix.
Returns:
the char representation of the specified digit in the specified radix.
Usages and Demos :

View More Examples of forDigit(int digit,int radix)
   1:          KeyStroke shortcut = KeyStroke.getKeyStroke(
   2:                                    Character.forDigit(i, 10),
   3:                                    InputEvent.ALT_MASK);
   4:          String mapKey = "FOCUS_TAB_"+i;
   5:          final int index = i - 1;

View Full Code Here
   1:             buf.append('%');
   2:             buf.append(Character.forDigit((data[i] & 240) >>> 4, 16));
   3:         ...
   4:             buf.append(Character.forDigit(data[i] & 15, 16));
   5:         }
   6:         return buf.toString();
   7:     }

View Full Code Here
   1:             buf.append('%');
   2:             buf.append(Character.forDigit((data[i] & 240) >>> 4, 16));
   3:         ...
   4:             buf.append(Character.forDigit(data[i] & 15, 16));
   5:         }
   6:         return buf.toString();
   7:     }

View Full Code Here
   1:         for (int i=0; i<32; i++)
   2:             id.append(Character.forDigit(buf[i] & 15, 16));
   3:     }
   4:         
   5:     public String toString() {

View Full Code Here
   1:         for (int idx = 0; idx < buf.length; idx++) {
   2:             str.append(Character.forDigit((buf[idx] >>> 4) & 15, 16));
   3:         ...
   4:             str.append(Character.forDigit(buf[idx] & 15, 16));
   5:             str.append(':');
   6:         }
   7:         str.setLength(str.length() - 1);

View Full Code Here

getDirectionality

public static byte getDirectionality(char ch)
Returns the Unicode directionality property for the given character. Character directionality is used to calculate the visual ordering of text. The directionality value of undefined char values is DIRECTIONALITY_UNDEFINED.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the getDirectionality(int) method.

Parameters:
ch - char for which the directionality property is requested.
Returns:
the directionality property of the char value.
Since:
1.4
Usages and Demos :

View More Examples of getDirectionality(char ch)
   1: private boolean isJoiningCharacter(char c) {
   2:     return Character.getDirectionality(c) == Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
   3:             || c == BidiChars.ZWJ;
   4: }

View Full Code Here

getDirectionality

public static byte getDirectionality(int codePoint)
Returns the Unicode directionality property for the given character (Unicode code point). Character directionality is used to calculate the visual ordering of text. The directionality value of undefined character is DIRECTIONALITY_UNDEFINED.
Parameters:
codePoint - the character (Unicode code point) for which the directionality property * is requested.
Returns:
the directionality property of the character.
Since:
1.5
Usages and Demos :

View More Examples of getDirectionality(int codePoint)
   1: private boolean isJoiningCharacter(char c) {
   2:     return Character.getDirectionality(c) == Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
   3:             || c == BidiChars.ZWJ;
   4: }

View Full Code Here

getNumericValue

public static int getNumericValue(char ch)
Returns the int value that the specified Unicode character represents. For example, the character '\u216C' (the roman numeral fifty) will return an int with a value of 50.

The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowercase ('\u0061' through '\u007A'), and full width variant ('\uFF21' through '\uFF3A' and '\uFF41' through '\uFF5A') forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.

If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the getNumericValue(int) method.

Parameters:
ch - the character to be converted.
Returns:
the numeric value of the character, as a nonnegative int value; -2 if the character has a numeric value that is not a nonnegative integer; -1 if the character has no numeric value.
Since:
1.1
Usages and Demos :

View More Examples of getNumericValue(char ch)
   1:         for (int i = 0; i < chars.length; i++) {
   2:             sum += Character.getNumericValue(chars[i]);
   3:         }
   4:         return Integer.toString(sum);   
   5:     }

View Full Code Here
   1:   {
   2:     return Character.valueOf((char) 0);
   3:   }
   4:         ...
   5:   {
   6:     char ch = ((Character)in).charValue();
   7: 
   8:         ...
   9: 
  10:     return new Character((char) i);
  11:   }

View Full Code Here
   1: 
   2:         while (!Character.isDigit(sel)) {
   3:             System.out.print("You must enter a number. "
   4:         ...
   5:         }
   6:         int numSel = Character.getNumericValue(sel);
   7:         System.out.println();
   8:         System.out.println("You selected number " + numSel + ".");
   9:         System.out.println();

View Full Code Here
   1:             char digit = isbn.charAt(i);
   2:             if (Character.isDigit(digit) || (digit == 'X')) {
   3:                 buf.append(digit);
   4:         ...
   5:     private int toInt(char ch) {
   6:         return (ch == 'X') ? 10 : Character.getNumericValue(ch);
   7:     }
   8:     
   9:     private boolean isFormatted(String isbn) {

View Full Code Here
   1:             if ( pos == 0) {
   2:                 retval += (Character.getNumericValue(thechar)-9);
   3:             } else {
   4:         ...
   5:                 retval += (Character.getNumericValue(thechar)-9) * (pos * 26);
   6:             }
   7:         ...
   8:         for (; loc < chars.length; loc++) {
   9:             if (Character.isDigit(chars[loc]) || chars[loc] == '$') {
  10:                 break;

View Full Code Here

getNumericValue

public static int getNumericValue(int codePoint)
Returns the int value that the specified character (Unicode code point) represents. For example, the character '\u216C' (the Roman numeral fifty) will return an int with a value of 50.

The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowercase ('\u0061' through '\u007A'), and full width variant ('\uFF21' through '\uFF3A' and '\uFF41' through '\uFF5A') forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.

If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned.

Parameters:
codePoint - the character (Unicode code point) to be converted.
Returns:
the numeric value of the character, as a nonnegative int value; -2 if the character has a numeric value that is not a nonnegative integer; -1 if the character has no numeric value.
Since:
1.5
Usages and Demos :

View More Examples of getNumericValue(int codePoint)
   1:         for (int i = 0; i < chars.length; i++) {
   2:             sum += Character.getNumericValue(chars[i]);
   3:         }
   4:         return Integer.toString(sum);   
   5:     }

View Full Code Here
   1:   {
   2:     return Character.valueOf((char) 0);
   3:   }
   4:         ...
   5:   {
   6:     char ch = ((Character)in).charValue();
   7: 
   8:         ...
   9: 
  10:     return new Character((char) i);
  11:   }

View Full Code Here
   1: 
   2:         while (!Character.isDigit(sel)) {
   3:             System.out.print("You must enter a number. "
   4:         ...
   5:         }
   6:         int numSel = Character.getNumericValue(sel);
   7:         System.out.println();
   8:         System.out.println("You selected number " + numSel + ".");
   9:         System.out.println();

View Full Code Here
   1:             char digit = isbn.charAt(i);
   2:             if (Character.isDigit(digit) || (digit == 'X')) {
   3:                 buf.append(digit);
   4:         ...
   5:     private int toInt(char ch) {
   6:         return (ch == 'X') ? 10 : Character.getNumericValue(ch);
   7:     }
   8:     
   9:     private boolean isFormatted(String isbn) {

View Full Code Here
   1:             if ( pos == 0) {
   2:                 retval += (Character.getNumericValue(thechar)-9);
   3:             } else {
   4:         ...
   5:                 retval += (Character.getNumericValue(thechar)-9) * (pos * 26);
   6:             }
   7:         ...
   8:         for (; loc < chars.length; loc++) {
   9:             if (Character.isDigit(chars[loc]) || chars[loc] == '$') {
  10:                 break;

View Full Code Here

getType

public static int getType(char ch)
Returns a value indicating a character's general category.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the getType(int) method.

Parameters:
ch - the character to be tested.
Returns:
a value of type int representing the character's general category.
Since:
1.1
Usages and Demos :

View More Examples of getType(char ch)
   1:             if (stopTable.get(text) == null) {
   2:                 switch (Character.getType(text.charAt(0))) {
   3: 
   4:         ...
   5:                 case Character.LOWERCASE_LETTER:
   6:         ...
   7:                 case Character.UPPERCASE_LETTER:
   8: 
   9:         ...
  10:                     break;
  11:                 case Character.OTHER_LETTER:

View Full Code Here
   1: 
   2:             switch(Character.getType(c)) {
   3: 
   4:         ...
   5:             case Character.DECIMAL_DIGIT_NUMBER:
   6:         ...
   7:             case Character.LOWERCASE_LETTER:
   8:         ...
   9:             case Character.UPPERCASE_LETTER:

View Full Code Here
   1:       if (isName && excluding) {
   2:         excludeRangeList.add(new Character(excludeMin));
   3:         ...
   4:         excludeRangeList.add(new Character(excludeMax));
   5:         excluding = false;
   6:         ...
   7:         if (isName)
   8:           includeList.add(new Character(ch));
   9:         else {
  10:         ...
  11:   static private boolean isApproxName(char c, boolean isStart) {
  12:     switch (Character.getType(c)) {

View Full Code Here
   1:     char c = formatToken.charAt(len - 1);
   2:     if (Character.digit(c, 10) == 1)
   3:       {
   4:         ...
   5:   {
   6:     switch (Character.getType(c))
   7:       {
   8:         return true;
   9:       default:

View Full Code Here
   1:   static final byte[] LETTER = new byte[]
   2:   { Character.LOWERCASE_LETTER,
   3:         ...
   4:     Character.UPPERCASE_LETTER,
   5:         ...
   6:     Character.TITLECASE_LETTER,
   7:     Character.MODIFIER_LETTER,
   8:         ...
   9:       public boolean includes(char c) {
  10:           return Character.getType(c) == category;

View Full Code Here

getType

public static int getType(int codePoint)
Returns a value indicating a character's general category.
Parameters:
codePoint - the character (Unicode code point) to be tested.
Returns:
a value of type int representing the character's general category.
Since:
1.5
Usages and Demos :

View More Examples of getType(int codePoint)
   1:             if (stopTable.get(text) == null) {
   2:                 switch (Character.getType(text.charAt(0))) {
   3: 
   4:         ...
   5:                 case Character.LOWERCASE_LETTER:
   6:         ...
   7:                 case Character.UPPERCASE_LETTER:
   8: 
   9:         ...
  10:                     break;
  11:                 case Character.OTHER_LETTER:

View Full Code Here
   1: 
   2:             switch(Character.getType(c)) {
   3: 
   4:         ...
   5:             case Character.DECIMAL_DIGIT_NUMBER:
   6:         ...
   7:             case Character.LOWERCASE_LETTER:
   8:         ...
   9:             case Character.UPPERCASE_LETTER:

View Full Code Here
   1:       if (isName && excluding) {
   2:         excludeRangeList.add(new Character(excludeMin));
   3:         ...
   4:         excludeRangeList.add(new Character(excludeMax));
   5:         excluding = false;
   6:         ...
   7:         if (isName)
   8:           includeList.add(new Character(ch));
   9:         else {
  10:         ...
  11:   static private boolean isApproxName(char c, boolean isStart) {
  12:     switch (Character.getType(c)) {

View Full Code Here
   1:     char c = formatToken.charAt(len - 1);
   2:     if (Character.digit(c, 10) == 1)
   3:       {
   4:         ...
   5:   {
   6:     switch (Character.getType(c))
   7:       {
   8:         return true;
   9:       default:

View Full Code Here
   1:   static final byte[] LETTER = new byte[]
   2:   { Character.LOWERCASE_LETTER,
   3:         ...
   4:     Character.UPPERCASE_LETTER,
   5:         ...
   6:     Character.TITLECASE_LETTER,
   7:     Character.MODIFIER_LETTER,
   8:         ...
   9:       public boolean includes(char c) {
  10:           return Character.getType(c) == category;

View Full Code Here

hashCode

public int hashCode()
Returns a hash code for this Character.
Overrides:
hashCode in interface Object
Returns:
a hash code value for this object.
Usages and Demos :

View More Examples of hashCode()
   1:         {
   2:             Character ch = new Character(text.toUpperCase().charAt(pos+1));
   3:             text = text.substring(0, pos) + text.substring(pos+1);
   4:         ...
   5:             putValue(Action.MNEMONIC_KEY, new Integer(ch.hashCode()));
   6:         }
   7:         Icon small = getIcon(action, true);
   8:         Icon large = getIcon(action, false);

View Full Code Here

isDefined

public static boolean isDefined(char ch)
Determines if a character is defined in Unicode.

A character is defined if at least one of the following is true:

  • It has an entry in the UnicodeData file.
  • It has a value in a range defined by the UnicodeData file.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isDefined(int) method.

Parameters:
ch - the character to be tested
Returns:
true if the character has a defined meaning in Unicode; false otherwise.
Since:
1.0.2
Usages and Demos :

View More Examples of isDefined(char ch)
   1:             char ch = token.charAt(i);
   2:             if ( (Character.isISOControl(ch) && !Character.isWhitespace(ch))
   3:         ...
   4:                 || !Character.isDefined(ch) ) isShady = true;
   5:         }
   6:         ...
   7:         char ch = (char)(wad[addr]);
   8:         if (font.canDisplay(ch) && !Character.isISOControl(ch)) q.append(ch);
   9:         else q.append('.');

View Full Code Here
   1:   {
   2:     return Character.isDefined(ch) && !Character.isWhitespace(ch) &&
   3:         ...
   4:       !Character.isISOControl(ch) && (ch != 'W') && (ch != '-') && 
   5:       (ch != ':') && (ch != '?');
   6:         ...
   7:         (shortForm <= MAX_CHAR) &&
   8:         Character.isDefined((char)shortForm)) {
   9:       System.out.print('-');
  10:         ...
  11:       final int shortForm = cls.getShortForm();
  12:       if ((shortForm < Character.MAX_VALUE) && isValidChar((char)shortForm)) {

View Full Code Here
   1:       {
   2:      return Character.isLetter(c);
   3:       }
   4:         ...
   5:       {
   6:      return Character.isDigit(c);
   7:       }
   8:         ...
   9:       {
  10:      return Character.isSpaceChar(c);
  11:       }
  12:         ...
  13:       {
  14:      return Character.isDefined((char) c);

View Full Code Here

isDefined

public static boolean isDefined(int codePoint)
Determines if a character (Unicode code point) is defined in Unicode.

A character is defined if at least one of the following is true:

  • It has an entry in the UnicodeData file.
  • It has a value in a range defined by the UnicodeData file.
Parameters:
codePoint - the character (Unicode code point) to be tested.
Returns:
true if the character has a defined meaning in Unicode; false otherwise.
Since:
1.5
Usages and Demos :

View More Examples of isDefined(int codePoint)
   1:             char ch = token.charAt(i);
   2:             if ( (Character.isISOControl(ch) && !Character.isWhitespace(ch))
   3:         ...
   4:                 || !Character.isDefined(ch) ) isShady = true;
   5:         }
   6:         ...
   7:         char ch = (char)(wad[addr]);
   8:         if (font.canDisplay(ch) && !Character.isISOControl(ch)) q.append(ch);
   9:         else q.append('.');

View Full Code Here
   1:   {
   2:     return Character.isDefined(ch) && !Character.isWhitespace(ch) &&
   3:         ...
   4:       !Character.isISOControl(ch) && (ch != 'W') && (ch != '-') && 
   5:       (ch != ':') && (ch != '?');
   6:         ...
   7:         (shortForm <= MAX_CHAR) &&
   8:         Character.isDefined((char)shortForm)) {
   9:       System.out.print('-');
  10:         ...
  11:       final int shortForm = cls.getShortForm();
  12:       if ((shortForm < Character.MAX_VALUE) && isValidChar((char)shortForm)) {

View Full Code Here
   1:       {
   2:      return Character.isLetter(c);
   3:       }
   4:         ...
   5:       {
   6:      return Character.isDigit(c);
   7:       }
   8:         ...
   9:       {
  10:      return Character.isSpaceChar(c);
  11:       }
  12:         ...
  13:       {
  14:      return Character.isDefined((char) c);

View Full Code Here

isDigit

public static boolean isDigit(char ch)
Determines if the specified character is a digit.

A character is a digit if its general category type, provided by Character.getType(ch), is DECIMAL_DIGIT_NUMBER.

Some Unicode character ranges that contain digits:

  • '\u0030' through '\u0039', ISO-LATIN-1 digits ('0' through '9')
  • '\u0660' through '\u0669', Arabic-Indic digits
  • '\u06F0' through '\u06F9', Extended Arabic-Indic digits
  • '\u0966' through '\u096F', Devanagari digits
  • '\uFF10' through '\uFF19', Fullwidth digits
Many other character ranges contain digits as well.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isDigit(int) method.

Parameters:
ch - the character to be tested.
Returns:
true if the character is a digit; false otherwise.
Usages and Demos :

View More Examples of isDigit(char ch)
   1:     public static boolean isValidNumericCharacter(char c) {
   2:         return Character.isDigit(c);
   3:     }
   4: 
   5:     public static boolean isValidInitalCharacter(char c) {

View Full Code Here
   1:     protected boolean ignore(char c) {
   2:         return Character.isDigit(c);
   3:     }
   4: 
   5:     protected PatternTrie createNew() {

View Full Code Here
   1:     public boolean isCharValid(char _char)
   2:       { return Character.isDigit(_char); }
   3:   };
   4:         ...
   5:     public boolean isCharValid(char _char)
   6:       { return Character.isDigit(_char); }
   7:   };
   8:         ...
   9:     {
  10:       return   Character.isDigit(_char)
  11:          ||(".,+-Ee".indexOf(_char)>=0);
  12:         ...
  13:     {
  14:       return   Character.isDigit(_char)

View Full Code Here
   1:             x++;
   2:         if (!Character.isDigit(line.charAt(x)))
   3:             return false;
   4:         ...
   5:         while (x < line.length() && Character.isDigit(line.charAt(x)))
   6:             x++;
   7:         ...
   8: 
   9:         while (line.length() > 0 && Character.isWhitespace(line.charAt(0)))
  10:             line = line.substring(1);
  11:         ...
  12:     private boolean isNumberChar(char c) {
  13:         return Character.isDigit(c) || "+-.eE".indexOf(c) != -1;

View Full Code Here
   1: 
   2:     switch (Character.getType (c)) {
   3: 
   4:         ...
   5: 
   6:     switch (Character.getType (c)) {
   7: 
   8:         ...
   9: 
  10:     return Character.isDigit(c)
  11:         && ! ( (c >= 0xff10) && (c <= 0xff19));

View Full Code Here

isDigit

public static boolean isDigit(int codePoint)
Determines if the specified character (Unicode code point) is a digit.

A character is a digit if its general category type, provided by getType(codePoint), is DECIMAL_DIGIT_NUMBER.

Some Unicode character ranges that contain digits:

  • '\u0030' through '\u0039', ISO-LATIN-1 digits ('0' through '9')
  • '\u0660' through '\u0669', Arabic-Indic digits
  • '\u06F0' through '\u06F9', Extended Arabic-Indic digits
  • '\u0966' through '\u096F', Devanagari digits
  • '\uFF10' through '\uFF19', Fullwidth digits
Many other character ranges contain digits as well.
Parameters:
codePoint - the character (Unicode code point) to be tested.
Returns:
true if the character is a digit; false otherwise.
Since:
1.5
Usages and Demos :

View More Examples of isDigit(int codePoint)
   1:     public static boolean isValidNumericCharacter(char c) {
   2:         return Character.isDigit(c);
   3:     }
   4: 
   5:     public static boolean isValidInitalCharacter(char c) {

View Full Code Here
   1:     protected boolean ignore(char c) {
   2:         return Character.isDigit(c);
   3:     }
   4: 
   5:     protected PatternTrie createNew() {

View Full Code Here
   1:     public boolean isCharValid(char _char)
   2:       { return Character.isDigit(_char); }
   3:   };
   4:         ...
   5:     public boolean isCharValid(char _char)
   6:       { return Character.isDigit(_char); }
   7:   };
   8:         ...
   9:     {
  10:       return   Character.isDigit(_char)
  11:          ||(".,+-Ee".indexOf(_char)>=0);
  12:         ...
  13:     {
  14:       return   Character.isDigit(_char)

View Full Code Here
   1:             x++;
   2:         if (!Character.isDigit(line.charAt(x)))
   3:             return false;
   4:         ...
   5:         while (x < line.length() && Character.isDigit(line.charAt(x)))
   6:             x++;
   7:         ...
   8: 
   9:         while (line.length() > 0 && Character.isWhitespace(line.charAt(0)))
  10:             line = line.substring(1);
  11:         ...
  12:     private boolean isNumberChar(char c) {
  13:         return Character.isDigit(c) || "+-.eE".indexOf(c) != -1;

View Full Code Here
   1: 
   2:     switch (Character.getType (c)) {
   3: 
   4:         ...
   5: 
   6:     switch (Character.getType (c)) {
   7: 
   8:         ...
   9: 
  10:     return Character.isDigit(c)
  11:         && ! ( (c >= 0xff10) && (c <= 0xff19));

View Full Code Here

isHighSurrogate

public static boolean isHighSurrogate(char ch)
Determines if the given char value is a high-surrogate code unit (also known as leading-surrogate code unit). Such values do not represent characters by themselves, but are used in the representation of supplementary characters in the UTF-16 encoding.

This method returns true if and only if

ch >= '\uD800' && ch <= '\uDBFF'
 
is true.
Parameters:
ch - the char value to be tested.
Returns:
true if the char value is between '\uD800' and '\uDBFF' inclusive; false otherwise.
Since:
1.5
Usages and Demos :

View More Examples of isHighSurrogate(char ch)
   1:     if (inputLength == input.length) {
   2:             if (input.length > 0 && Character.isWhitespace(input[input.length - 1])) {
   3:                 inputLength--;
   4:         ...
   5:     char c = ch;
   6:     int result = Character.digit(c, base);
   7:     if (result >= 0 && c > 0x7f) {
   8:         ...
   9:                         }
  10:                         isJavaIdentifierPart = Character.isJavaIdentifierPart(
  11:                             Character.toCodePoint(high, ch));
  12:         ...
  13:         try {
  14:             Character.isHighSurrogate('a');

View Full Code Here

isISOControl

public static boolean isISOControl(char ch)
Determines if the specified character is an ISO control character. A character is considered to be an ISO control character if its code is in the range '\u0000' through '\u001F' or in the range '\u007F' through '\u009F'.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isISOControl(int) method.

Parameters:
ch - the character to be tested.
Returns:
true if the character is an ISO control character; false otherwise.
Since:
1.1
Usages and Demos :

View More Examples of isISOControl(char ch)
   1:     case ALNUM:
   2:       retval = Character.isLetterOrDigit(ch);
   3:       break;
   4:         ...
   5:     case ALPHA:
   6:       retval = Character.isLetter(ch);
   7:       break;
   8:         ...
   9:     case CNTRL:
  10:       retval = Character.isISOControl(ch);
  11:       break;
  12:         ...
  13:     case DIGIT:
  14:       retval = Character.isDigit(ch);

View Full Code Here
   1:       if(shownonprinting&&(c!='\n')&&(c!='\t')&&
   2:      Character.isISOControl((char)c))
   3:       {
   4:     if(c>0x001F)
   5:     {

View Full Code Here
   1:     case ALNUM:
   2:     retval = Character.isLetterOrDigit(ch) || (ch == '_');
   3:     break;
   4:         ...
   5:     case ALPHA:
   6:     retval = Character.isLetter(ch);
   7:     break;
   8:         ...
   9:     case CNTRL:
  10:     retval = Character.isISOControl(ch);
  11:     break;
  12:         ...
  13:     case DIGIT:
  14:     retval = Character.isDigit(ch);

View Full Code Here
   1:   {
   2:     return Character.isLetterOrDigit(ch);
   3:   }
   4:         ...
   5:   {
   6:     return Character.isLetter(ch);
   7:   }
   8:         ...
   9:   {
  10:     return Character.isISOControl(ch);
  11:   }
  12:         ...
  13:   {
  14:     return Character.isDigit(ch);

View Full Code Here
   1:             currentToken = c;
   2:             currentTokenValue = new Character(c).toString();
   3:             ++dataIndex;
   4:         ...
   5:             currentToken = UNKNOWN_TOKEN;
   6:             currentTokenValue = new Character(c).toString();
   7:             ++dataIndex;
   8:         ...
   9:             currentToken = c;
  10:             currentTokenValue = new Character(c).toString();
  11:             ++dataIndex;
  12:         ...
  13:     public static boolean isControlChar(char c) {
  14:     return Character.isISOControl(c);

View Full Code Here

isISOControl

public static boolean isISOControl(int codePoint)
Determines if the referenced character (Unicode code point) is an ISO control character. A character is considered to be an ISO control character if its code is in the range '\u0000' through '\u001F' or in the range '\u007F' through '\u009F'.
Parameters:
codePoint - the character (Unicode code point) to be tested.
Returns:
true if the character is an ISO control character; false otherwise.
Since:
1.5
Usages and Demos :

View More Examples of isISOControl(int codePoint)
   1:     case ALNUM:
   2:       retval = Character.isLetterOrDigit(ch);
   3:       break;
   4:         ...
   5:     case ALPHA:
   6:       retval = Character.isLetter(ch);
   7:       break;
   8:         ...
   9:     case CNTRL:
  10:       retval = Character.isISOControl(ch);
  11:       break;
  12:         ...
  13:     case DIGIT:
  14:       retval = Character.isDigit(ch);

View Full Code Here
   1:       if(shownonprinting&&(c!='\n')&&(c!='\t')&&
   2:      Character.isISOControl((char)c))
   3:       {
   4:     if(c>0x001F)
   5:     {

View Full Code Here
   1:     case ALNUM:
   2:     retval = Character.isLetterOrDigit(ch) || (ch == '_');
   3:     break;
   4:         ...
   5:     case ALPHA:
   6:     retval = Character.isLetter(ch);
   7:     break;
   8:         ...
   9:     case CNTRL:
  10:     retval = Character.isISOControl(ch);
  11:     break;
  12:         ...
  13:     case DIGIT:
  14:     retval = Character.isDigit(ch);

View Full Code Here
   1:   {
   2:     return Character.isLetterOrDigit(ch);
   3:   }
   4:         ...
   5:   {
   6:     return Character.isLetter(ch);
   7:   }
   8:         ...
   9:   {
  10:     return Character.isISOControl(ch);
  11:   }
  12:         ...
  13:   {
  14:     return Character.isDigit(ch);

View Full Code Here
   1:             currentToken = c;
   2:             currentTokenValue = new Character(c).toString();
   3:             ++dataIndex;
   4:         ...
   5:             currentToken = UNKNOWN_TOKEN;
   6:             currentTokenValue = new Character(c).toString();
   7:             ++dataIndex;
   8:         ...
   9:             currentToken = c;
  10:             currentTokenValue = new Character(c).toString();
  11:             ++dataIndex;
  12:         ...
  13:     public static boolean isControlChar(char c) {
  14:     return Character.isISOControl(c);

View Full Code Here

isIdentifierIgnorable

public static boolean isIdentifierIgnorable(char ch)
Determines if the specified character should be regarded as an ignorable character in a Java identifier or a Unicode identifier.

The following Unicode characters are ignorable in a Java identifier or a Unicode identifier:

  • ISO control characters that are not whitespace
    • '\u0000' through '\u0008'
    • '\u000E' through '\u001B'
    • '\u007F' through '\u009F'
  • all characters that have the FORMAT general category value

    Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isIdentifierIgnorable(int) method.

  • Parameters:
    ch - the character to be tested.
    Returns:
    true if the character is an ignorable control character that may be part of a Java or Unicode identifier; false otherwise.
    Since:
    1.1

    isIdentifierIgnorable

    public static boolean isIdentifierIgnorable(int codePoint)
    Determines if the specified character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.

    The following Unicode characters are ignorable in a Java identifier or a Unicode identifier:

    • ISO control characters that are not whitespace
      • '\u0000' through '\u0008'
      • '\u000E' through '\u001B'
      • '\u007F' through '\u009F'
    • all characters that have the FORMAT general category value
    • Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is an ignorable control character that may be part of a Java or Unicode identifier; false otherwise.
      Since:
      1.5

      isJavaIdentifierPart

      public static boolean isJavaIdentifierPart(char ch)
      Determines if the specified character may be part of a Java identifier as other than the first character.

      A character may be part of a Java identifier if any of the following are true:

      • it is a letter
      • it is a currency symbol (such as '$')
      • it is a connecting punctuation character (such as '_')
      • it is a digit
      • it is a numeric letter (such as a Roman numeral character)
      • it is a combining mark
      • it is a non-spacing mark
      • isIdentifierIgnorable returns true for the character

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isJavaIdentifierPart(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character may be part of a Java identifier; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isJavaIdentifierPart(char ch)
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isCharValid(char _char)
         2:       { return Character.isDigit(_char); }
         3:   };
         4:         ...
         5:     public boolean isCharValid(char _char)
         6:       { return Character.isDigit(_char); }
         7:   };
         8:         ...
         9:     {
        10:       return   Character.isDigit(_char)
        11:          ||(".,+-Ee".indexOf(_char)>=0);
        12:         ...
        13:     public boolean isCharValid(char _char)
        14:       { return Character.isJavaIdentifierPart(_char); }

      View Full Code Here
         1:                     throw new IllegalArgumentException(
         2:                             "opt contains illegal character value '" + chars[i]
         3:                             + "'");
         4:         ...
         5:     {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: } 

      View Full Code Here
         1:                     (buffer.length() == 0 ?
         2:                          Character.isJavaIdentifierStart((char)c) :
         3:         ...
         4:                          Character.isJavaIdentifierPart((char)c)))
         5:                 {
         6:                     buffer.append((char)c);
         7:                 }

      View Full Code Here

      isJavaIdentifierPart

      public static boolean isJavaIdentifierPart(int codePoint)
      Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character.

      A character may be part of a Java identifier if any of the following are true:

      • it is a letter
      • it is a currency symbol (such as '$')
      • it is a connecting punctuation character (such as '_')
      • it is a digit
      • it is a numeric letter (such as a Roman numeral character)
      • it is a combining mark
      • it is a non-spacing mark
      • isIdentifierIgnorable(codePoint) returns true for the character
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character may be part of a Java identifier; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isJavaIdentifierPart(int codePoint)
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isCharValid(char _char)
         2:       { return Character.isDigit(_char); }
         3:   };
         4:         ...
         5:     public boolean isCharValid(char _char)
         6:       { return Character.isDigit(_char); }
         7:   };
         8:         ...
         9:     {
        10:       return   Character.isDigit(_char)
        11:          ||(".,+-Ee".indexOf(_char)>=0);
        12:         ...
        13:     public boolean isCharValid(char _char)
        14:       { return Character.isJavaIdentifierPart(_char); }

      View Full Code Here
         1:                     throw new IllegalArgumentException(
         2:                             "opt contains illegal character value '" + chars[i]
         3:                             + "'");
         4:         ...
         5:     {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: } 

      View Full Code Here
         1:                     (buffer.length() == 0 ?
         2:                          Character.isJavaIdentifierStart((char)c) :
         3:         ...
         4:                          Character.isJavaIdentifierPart((char)c)))
         5:                 {
         6:                     buffer.append((char)c);
         7:                 }

      View Full Code Here

      isJavaIdentifierStart

      public static boolean isJavaIdentifierStart(char ch)
      Determines if the specified character is permissible as the first character in a Java identifier.

      A character may start a Java identifier if and only if one of the following conditions is true:

      • isLetter(ch) returns true
      • getType(ch) returns LETTER_NUMBER
      • ch is a currency symbol (such as "$")
      • ch is a connecting punctuation character (such as "_").

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isJavaIdentifierStart(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character may start a Java identifier; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isJavaIdentifierStart(char ch)
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: } 

      View Full Code Here
         1:     private static boolean isJavaIdentifier(String token) {
         2:         return Character.isJavaIdentifierStart( token.charAt( 0 ) );
         3:     }
         4: 
         5:     public static String getImportedClass(String name, SessionFactoryImplementor factory) {

      View Full Code Here
         1:                     (buffer.length() == 0 ?
         2:                          Character.isJavaIdentifierStart((char)c) :
         3:         ...
         4:                          Character.isJavaIdentifierPart((char)c)))
         5:                 {
         6:                     buffer.append((char)c);
         7:                 }

      View Full Code Here
         1:       }
         2:       if (i > 1 && i < name.length() && !Character.isDigit(name.charAt(i)))
         3:       {
         4:         ...
         5:         {
         6:           result.append(Character.toUpperCase(nameComponent.charAt(0)));
         7:           result.append(nameComponent.substring(1));
         8:         ...
         9:         prefix :
        10:         Character.isJavaIdentifierStart(result.charAt(0)) ?
        11:           casing == LOWER_CASE ?
        12:         ...
        13:         char curChar = sourceName.charAt(index);
        14:         if (!Character.isJavaIdentifierPart(curChar))

      View Full Code Here

      isJavaIdentifierStart

      public static boolean isJavaIdentifierStart(int codePoint)
      Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.

      A character may start a Java identifier if and only if one of the following conditions is true:

      • isLetter(codePoint) returns true
      • getType(codePoint) returns LETTER_NUMBER
      • the referenced character is a currency symbol (such as "$")
      • the referenced character is a connecting punctuation character (such as "_").
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character may start a Java identifier; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isJavaIdentifierStart(int codePoint)
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: }

      View Full Code Here
         1:     public boolean isWordStart(char c) {
         2:         return Character.isJavaIdentifierStart(c);
         3:     }
         4:         ...
         5:     public boolean isWordPart(char c) {
         6:         return Character.isJavaIdentifierPart(c);
         7:     }
         8: } 

      View Full Code Here
         1:     private static boolean isJavaIdentifier(String token) {
         2:         return Character.isJavaIdentifierStart( token.charAt( 0 ) );
         3:     }
         4: 
         5:     public static String getImportedClass(String name, SessionFactoryImplementor factory) {

      View Full Code Here
         1:                     (buffer.length() == 0 ?
         2:                          Character.isJavaIdentifierStart((char)c) :
         3:         ...
         4:                          Character.isJavaIdentifierPart((char)c)))
         5:                 {
         6:                     buffer.append((char)c);
         7:                 }

      View Full Code Here
         1:       }
         2:       if (i > 1 && i < name.length() && !Character.isDigit(name.charAt(i)))
         3:       {
         4:         ...
         5:         {
         6:           result.append(Character.toUpperCase(nameComponent.charAt(0)));
         7:           result.append(nameComponent.substring(1));
         8:         ...
         9:         prefix :
        10:         Character.isJavaIdentifierStart(result.charAt(0)) ?
        11:           casing == LOWER_CASE ?
        12:         ...
        13:         char curChar = sourceName.charAt(index);
        14:         if (!Character.isJavaIdentifierPart(curChar))

      View Full Code Here

      isLetter

      public static boolean isLetter(char ch)
      Determines if the specified character is a letter.

      A character is considered to be a letter if its general category type, provided by Character.getType(ch), is any of the following:

      • UPPERCASE_LETTER
      • LOWERCASE_LETTER
      • TITLECASE_LETTER
      • MODIFIER_LETTER
      • OTHER_LETTER
      Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isLetter(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is a letter; false otherwise.
      See Also:
      isDigit(char), isJavaIdentifierStart(char), java.lang.Character.isJavaLetter(char), java.lang.Character.isJavaLetterOrDigit(char), isLetterOrDigit(char), isLowerCase(char), isTitleCase(char), isUnicodeIdentifierStart(char), isUpperCase(char)
      Usages and Demos :

      View More Examples of isLetter(char ch)
         1:   protected boolean isTokenChar(char c) {
         2:     return Character.isLetter(c);
         3:   }
         4: }

      View Full Code Here
         1:                     }
         2:                     state = Character.isLetter((char) ch) ? State.WORD
         3:                             : State.NUMBER;
         4:         ...
         5:             case MACRO_ARGUMENT:
         6:                 if (Character.isDigit((char) ch))
         7:                     tokenBuffer.append((char) ch);
         8:         ...
         9:             case NUMBER:
        10:                 if (!Character.isDigit((char) ch) && ch != '.')
        11:                     return new WordToken(tokenBuffer.toString());
        12:         ...
        13:             case BACKSLASH:
        14:                 if (Character.isLetter((char) ch)) {

      View Full Code Here
         1: 
         2:   public void setCharacterSubsets(Character.Subset[] subsets) {
         3:   }
         4:         ...
         5:         }
         6:       } else if (Character.UnicodeBlock.of(ch) ==
         7:         ...
         8:         Character.UnicodeBlock.BASIC_LATIN && Character.isLetter(ch)) {
         9:         rawText.append(ch);

      View Full Code Here
         1:         private static boolean isValidBeginningCharacter(char c) {
         2:             return Character.isLetter(c) || (c == '_') || (c == ':');
         3:         }
         4:         ...
         5:         private static boolean isValidNameCharacter(char c) {
         6:             return Character.isLetter(c) || Character.isDigit(c) ||
         7:                 (c == '.') || (c == '_') || (c == '-') || (c == ':');
         8:         }
         9:     }

      View Full Code Here
         1:     }
         2:     return Character.isJavaIdentifierPart(c);
         3: }
         4:         ...
         5:         case 0 :
         6:             return Character.isJavaIdentifierPart((char) codePoint);
         7:         case 1 :
         8:         ...
         9:     }
        10:     return Character.isJavaIdentifierStart(c);
        11: }    
        12:         ...
        13:     }
        14:     return Character.isLetter(c);

      View Full Code Here

      isLetter

      public static boolean isLetter(int codePoint)
      Determines if the specified character (Unicode code point) is a letter.

      A character is considered to be a letter if its general category type, provided by getType(codePoint), is any of the following:

      • UPPERCASE_LETTER
      • LOWERCASE_LETTER
      • TITLECASE_LETTER
      • MODIFIER_LETTER
      • OTHER_LETTER
      Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase.
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is a letter; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isLetter(int codePoint)
         1:   protected boolean isTokenChar(char c) {
         2:     return Character.isLetter(c);
         3:   }
         4: }

      View Full Code Here
         1:                     }
         2:                     state = Character.isLetter((char) ch) ? State.WORD
         3:                             : State.NUMBER;
         4:         ...
         5:             case MACRO_ARGUMENT:
         6:                 if (Character.isDigit((char) ch))
         7:                     tokenBuffer.append((char) ch);
         8:         ...
         9:             case NUMBER:
        10:                 if (!Character.isDigit((char) ch) && ch != '.')
        11:                     return new WordToken(tokenBuffer.toString());
        12:         ...
        13:             case BACKSLASH:
        14:                 if (Character.isLetter((char) ch)) {

      View Full Code Here
         1: 
         2:   public void setCharacterSubsets(Character.Subset[] subsets) {
         3:   }
         4:         ...
         5:         }
         6:       } else if (Character.UnicodeBlock.of(ch) ==
         7:         ...
         8:         Character.UnicodeBlock.BASIC_LATIN && Character.isLetter(ch)) {
         9:         rawText.append(ch);

      View Full Code Here
         1:         private static boolean isValidBeginningCharacter(char c) {
         2:             return Character.isLetter(c) || (c == '_') || (c == ':');
         3:         }
         4:         ...
         5:         private static boolean isValidNameCharacter(char c) {
         6:             return Character.isLetter(c) || Character.isDigit(c) ||
         7:                 (c == '.') || (c == '_') || (c == '-') || (c == ':');
         8:         }
         9:     }

      View Full Code Here
         1:     }
         2:     return Character.isJavaIdentifierPart(c);
         3: }
         4:         ...
         5:         case 0 :
         6:             return Character.isJavaIdentifierPart((char) codePoint);
         7:         case 1 :
         8:         ...
         9:     }
        10:     return Character.isJavaIdentifierStart(c);
        11: }    
        12:         ...
        13:     }
        14:     return Character.isLetter(c);

      View Full Code Here

      isLetterOrDigit

      public static boolean isLetterOrDigit(char ch)
      Determines if the specified character is a letter or digit.

      A character is considered to be a letter or digit if either Character.isLetter(char ch) or Character.isDigit(char ch) returns true for the character.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isLetterOrDigit(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is a letter or digit; false otherwise.
      Since:
      1.0.2
      See Also:
      isDigit(char), isJavaIdentifierPart(char), java.lang.Character.isJavaLetter(char), java.lang.Character.isJavaLetterOrDigit(char), isLetter(char), isUnicodeIdentifierPart(char)
      Usages and Demos :

      View More Examples of isLetterOrDigit(char ch)
         1:     protected char normalize(char c) {
         2:         return Character.toLowerCase(c);
         3:     }
         4:         ...
         5:     protected boolean isTokenChar(char c) {
         6:         return Character.isLetterOrDigit(c);
         7:     }
         8: 
         9: }

      View Full Code Here
         1:     public boolean isCharValid(char _char)
         2:       { return Character.isDigit(_char); }
         3:   };
         4:         ...
         5:     public boolean isCharValid(char _char)
         6:       { return Character.isDigit(_char); }
         7:   };
         8:         ...
         9:     {
        10:       return   Character.isDigit(_char)
        11:          ||(".,+-Ee".indexOf(_char)>=0);
        12:         ...
        13:     {
        14:       return Character.isLetterOrDigit(_char)

      View Full Code Here
         1:     private boolean isTokenChar(int ch) {
         2:         return Character.isLetterOrDigit((char) ch) || ch == '-';
         3:     }
         4:         ...
         5:     private void skipWhite() throws IOException {
         6:         while (Character.isWhitespace(ch))
         7:             nextChar();
         8:     }
      

      View Full Code Here
         1: 
         2:     return Character.isLetterOrDigit(c) | c == '.' | c == '-' | c == '_' | c == ':';
         3:   }
         4: 
      

      View Full Code Here
         1:     private boolean isTokenChar(char c) {
         2:         return Character.isLetterOrDigit(c) || c == '_';
         3:     }
         4: 
         5:     public void load(File file) throws ConfigException {

      View Full Code Here

      isLetterOrDigit

      public static boolean isLetterOrDigit(int codePoint)
      Determines if the specified character (Unicode code point) is a letter or digit.

      A character is considered to be a letter or digit if either isLetter(codePoint) or isDigit(codePoint) returns true for the character.

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is a letter or digit; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isLetterOrDigit(int codePoint)
         1:     protected char normalize(char c) {
         2:         return Character.toLowerCase(c);
         3:     }
         4:         ...
         5:     protected boolean isTokenChar(char c) {
         6:         return Character.isLetterOrDigit(c);
         7:     }
         8: 
         9: }

      View Full Code Here
         1:     public boolean isCharValid(char _char)
         2:       { return Character.isDigit(_char); }
         3:   };
         4:         ...
         5:     public boolean isCharValid(char _char)
         6:       { return Character.isDigit(_char); }
         7:   };
         8:         ...
         9:     {
        10:       return   Character.isDigit(_char)
        11:          ||(".,+-Ee".indexOf(_char)>=0);
        12:         ...
        13:     {
        14:       return Character.isLetterOrDigit(_char)

      View Full Code Here
         1:     private boolean isTokenChar(int ch) {
         2:         return Character.isLetterOrDigit((char) ch) || ch == '-';
         3:     }
         4:         ...
         5:     private void skipWhite() throws IOException {
         6:         while (Character.isWhitespace(ch))
         7:             nextChar();
         8:     }
      

      View Full Code Here
         1: 
         2:     return Character.isLetterOrDigit(c) | c == '.' | c == '-' | c == '_' | c == ':';
         3:   }
         4: 
      

      View Full Code Here
         1:     private boolean isTokenChar(char c) {
         2:         return Character.isLetterOrDigit(c) || c == '_';
         3:     }
         4: 
         5:     public void load(File file) throws ConfigException {

      View Full Code Here

      isLowSurrogate

      public static boolean isLowSurrogate(char ch)
      Determines if the given char value is a low-surrogate code unit (also known as trailing-surrogate code unit). Such values do not represent characters by themselves, but are used in the representation of supplementary characters in the UTF-16 encoding.

      This method returns true if and only if

      ch >= '\uDC00' && ch <= '\uDFFF'
       
      is true.
      Parameters:
      ch - the char value to be tested.
      Returns:
      true if the char value is between '\uDC00' and '\uDFFF' inclusive; false otherwise.
      Since:
      1.5

      isLowerCase

      public static boolean isLowerCase(char ch)
      Determines if the specified character is a lowercase character.

      A character is lowercase if its general category type, provided by Character.getType(ch), is LOWERCASE_LETTER.

      The following are examples of lowercase characters:

       a b c d e f g h i j k l m n o p q r s t u v w x y z
       '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6' 
       '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE'
       '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6'
       '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF'
       

      Many other Unicode characters are lowercase too.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isLowerCase(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is lowercase; false otherwise.
      Usages and Demos :

      View More Examples of isLowerCase(char ch)
         1:     private boolean couldBeLocalVariableName(String name) {
         2:         return Character.isLowerCase(name.charAt(0));
         3:     }
         4:     
         5:     

      View Full Code Here
         1:             if (
         2:                 Character.isLowerCase( buf.charAt(i-1) ) &&
         3:         ...
         4:                 Character.isUpperCase( buf.charAt(i) ) &&
         5:         ...
         6:                 Character.isLowerCase( buf.charAt(i+1) )
         7:             ) {

      View Full Code Here
         1:       if (string.length() > 1 &&
         2:             Character.isLowerCase(string.charAt(0)) && Character.isUpperCase(string.charAt(1))) {
         3:         ...
         4:          return Character.toUpperCase(string.charAt(0)) + string.substring(1);
         5:       }
         6:         ...
         7:       }
         8:       String temp = Character.toUpperCase(string.charAt(0)) +
         9:             (string.length() > 1 ? string.substring(1).toLowerCase() : "");

      View Full Code Here
         1:         continue;
         2:       else if (Character.isUpperCase(chA) &&
         3:         ...
         4:            Character.isLowerCase(chB)) {
         5:         cmp = -1;
         6:         ...
         7:       }
         8:       else if (Character.isLowerCase(chA) &&
         9:         ...
        10:            Character.isUpperCase(chB)) {

      View Full Code Here
         1:   {
         2:     return Character.isLetterOrDigit(ch);
         3:   }
         4:         ...
         5:   {
         6:     return Character.isLetter(ch);
         7:   }
         8:         ...
         9:   {
        10:     return Character.isISOControl(ch);
        11:   }
        12:         ...
        13:   {
        14:     return Character.isLowerCase(ch);

      View Full Code Here

      isLowerCase

      public static boolean isLowerCase(int codePoint)
      Determines if the specified character (Unicode code point) is a lowercase character.

      A character is lowercase if its general category type, provided by getType(codePoint), is LOWERCASE_LETTER.

      The following are examples of lowercase characters:

       a b c d e f g h i j k l m n o p q r s t u v w x y z
       '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6' 
       '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE'
       '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6'
       '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF'
       

      Many other Unicode characters are lowercase too.

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is lowercase; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isLowerCase(int codePoint)
         1:     private boolean couldBeLocalVariableName(String name) {
         2:         return Character.isLowerCase(name.charAt(0));
         3:     }
         4:     
         5:     

      View Full Code Here
         1:             if (
         2:                 Character.isLowerCase( buf.charAt(i-1) ) &&
         3:         ...
         4:                 Character.isUpperCase( buf.charAt(i) ) &&
         5:         ...
         6:                 Character.isLowerCase( buf.charAt(i+1) )
         7:             ) {

      View Full Code Here
         1:       if (string.length() > 1 &&
         2:             Character.isLowerCase(string.charAt(0)) && Character.isUpperCase(string.charAt(1))) {
         3:         ...
         4:          return Character.toUpperCase(string.charAt(0)) + string.substring(1);
         5:       }
         6:         ...
         7:       }
         8:       String temp = Character.toUpperCase(string.charAt(0)) +
         9:             (string.length() > 1 ? string.substring(1).toLowerCase() : "");

      View Full Code Here
         1:         continue;
         2:       else if (Character.isUpperCase(chA) &&
         3:         ...
         4:            Character.isLowerCase(chB)) {
         5:         cmp = -1;
         6:         ...
         7:       }
         8:       else if (Character.isLowerCase(chA) &&
         9:         ...
        10:            Character.isUpperCase(chB)) {

      View Full Code Here
         1:   {
         2:     return Character.isLetterOrDigit(ch);
         3:   }
         4:         ...
         5:   {
         6:     return Character.isLetter(ch);
         7:   }
         8:         ...
         9:   {
        10:     return Character.isISOControl(ch);
        11:   }
        12:         ...
        13:   {
        14:     return Character.isLowerCase(ch);

      View Full Code Here

      isMirrored

      public static boolean isMirrored(char ch)
      Determines whether the character is mirrored according to the Unicode specification. Mirrored characters should have their glyphs horizontally mirrored when displayed in text that is right-to-left. For example, '\u0028' LEFT PARENTHESIS is semantically defined to be an opening parenthesis. This will appear as a "(" in text that is left-to-right but as a ")" in text that is right-to-left.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isMirrored(int) method.

      Parameters:
      ch - char for which the mirrored property is requested
      Returns:
      true if the char is mirrored, false if the char is not mirrored or is not defined.
      Since:
      1.4

      isMirrored

      public static boolean isMirrored(int codePoint)
      Determines whether the specified character (Unicode code point) is mirrored according to the Unicode specification. Mirrored characters should have their glyphs horizontally mirrored when displayed in text that is right-to-left. For example, '\u0028' LEFT PARENTHESIS is semantically defined to be an opening parenthesis. This will appear as a "(" in text that is left-to-right but as a ")" in text that is right-to-left.
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is mirrored, false if the character is not mirrored or is not defined.
      Since:
      1.5

      isSpaceChar

      public static boolean isSpaceChar(char ch)
      Determines if the specified character is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the Unicode standard. This method returns true if the character's general category type is any of the following:
      • SPACE_SEPARATOR
      • LINE_SEPARATOR
      • PARAGRAPH_SEPARATOR

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isSpaceChar(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is a space character; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isSpaceChar(char ch)
         1:     private boolean isSpace(char c) {
         2:         return Character.isSpaceChar(c) || c == '\r' || c == '\n';
         3:     }
         4: 
         5:     public void parse(Reader src) throws IOException {

      View Full Code Here
         1:   {
         2:     return Character.isLetterOrDigit(ch);
         3:   }
         4:         ...
         5:   {
         6:     return Character.isLetter(ch);
         7:   }
         8:         ...
         9:   {
        10:     return Character.isISOControl(ch);
        11:   }
        12:         ...
        13:   {
        14:     return Character.isSpaceChar(ch);

      View Full Code Here
         1: 
         2:         return Character.toUpperCase(aString.charAt(0)) + aString.substring(1);
         3:     }
         4:         ...
         5:             while ((lastCharIndex >= 0) && 
         6:                 Character.isSpaceChar(input.charAt(lastCharIndex)))
         7:             {
         8:                 lastCharIndex--;
         9:             }

      View Full Code Here
         1:         for (int i=count; --i>=0;) {
         2:             if (!Character.isSpaceChar(buffer[i])) {
         3:                 return false;
         4:         ...
         5:             assert (c!='\r' && c!='\n');
         6:             if (Character.isSpaceChar(c)) {
         7:                 upper--;
         8:         ...
         9:             assert (c!='\r' && c!='\n');
        10:             if (Character.isSpaceChar(c)) {
        11:                 upper--;
        12:         ...
        13:                 default: {
        14:                     if (c >= Character.MIN_VALUE &&

      View Full Code Here
         1:         while(cleanupBuffer.length() > 0 && 
         2:                 Character.isSpaceChar(cleanupBuffer.charAt(0)))
         3:             cleanupBuffer.deleteCharAt(0);
         4:         ...
         5:         while(cleanupBuffer.length() > 0 && 
         6:                 Character.isSpaceChar(cleanupBuffer.charAt(cleanupBuffer.length() - 1)))
         7:             cleanupBuffer.deleteCharAt(cleanupBuffer.length() - 1);
         8:         ...
         9:                             while (j < sqlbuff.length - 1 
        10:                                 && Character.isWhitespace(sqlbuff[j])) j++;
        11:                             if (sqlbuff[j] == '(') 
        12:         ...
        13:          
        14:          while(Character.isSpaceChar(buffer.charAt(0)))

      View Full Code Here

      isSpaceChar

      public static boolean isSpaceChar(int codePoint)
      Determines if the specified character (Unicode code point) is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the Unicode standard. This method returns true if the character's general category type is any of the following:
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is a space character; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isSpaceChar(int codePoint)
         1:     private boolean isSpace(char c) {
         2:         return Character.isSpaceChar(c) || c == '\r' || c == '\n';
         3:     }
         4: 
         5:     public void parse(Reader src) throws IOException {

      View Full Code Here
         1:   {
         2:     return Character.isLetterOrDigit(ch);
         3:   }
         4:         ...
         5:   {
         6:     return Character.isLetter(ch);
         7:   }
         8:         ...
         9:   {
        10:     return Character.isISOControl(ch);
        11:   }
        12:         ...
        13:   {
        14:     return Character.isSpaceChar(ch);

      View Full Code Here
         1: 
         2:         return Character.toUpperCase(aString.charAt(0)) + aString.substring(1);
         3:     }
         4:         ...
         5:             while ((lastCharIndex >= 0) && 
         6:                 Character.isSpaceChar(input.charAt(lastCharIndex)))
         7:             {
         8:                 lastCharIndex--;
         9:             }

      View Full Code Here
         1:         for (int i=count; --i>=0;) {
         2:             if (!Character.isSpaceChar(buffer[i])) {
         3:                 return false;
         4:         ...
         5:             assert (c!='\r' && c!='\n');
         6:             if (Character.isSpaceChar(c)) {
         7:                 upper--;
         8:         ...
         9:             assert (c!='\r' && c!='\n');
        10:             if (Character.isSpaceChar(c)) {
        11:                 upper--;
        12:         ...
        13:                 default: {
        14:                     if (c >= Character.MIN_VALUE &&

      View Full Code Here
         1:         while(cleanupBuffer.length() > 0 && 
         2:                 Character.isSpaceChar(cleanupBuffer.charAt(0)))
         3:             cleanupBuffer.deleteCharAt(0);
         4:         ...
         5:         while(cleanupBuffer.length() > 0 && 
         6:                 Character.isSpaceChar(cleanupBuffer.charAt(cleanupBuffer.length() - 1)))
         7:             cleanupBuffer.deleteCharAt(cleanupBuffer.length() - 1);
         8:         ...
         9:                             while (j < sqlbuff.length - 1 
        10:                                 && Character.isWhitespace(sqlbuff[j])) j++;
        11:                             if (sqlbuff[j] == '(') 
        12:         ...
        13:          
        14:          while(Character.isSpaceChar(buffer.charAt(0)))

      View Full Code Here

      isSupplementaryCodePoint

      public static boolean isSupplementaryCodePoint(int codePoint)
      Determines whether the specified character (Unicode code point) is in the supplementary character range. The method call is equivalent to the expression:
       codePoint >= 0x10000 && codePoint <= 0x10ffff
       
      Parameters:
      codePoint - the character (Unicode code point) to be tested
      Returns:
      true if the specified character is in the Unicode supplementary character range; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isSupplementaryCodePoint(int codePoint)
         1:             int cp;
         2:             if (Character.isSupplementaryCodePoint(cp = s.codePointAt(i)))
         3:                 i++;
         4:         ...
         5:             if (Character.isWhitespace(cp)
         6:         ...
         7:                     || Character.isSpaceChar(cp)
         8:         ...
         9:                     || Character.isISOControl(cp)

      View Full Code Here

      isSurrogatePair

      public static boolean isSurrogatePair(char high,
                                            char low)
      Determines whether the specified pair of char values is a valid surrogate pair. This method is equivalent to the expression:
       isHighSurrogate(high) && isLowSurrogate(low)
       
      Parameters:
      high - the high-surrogate code value to be tested
      low - the low-surrogate code value to be tested
      Returns:
      true if the specified high and low-surrogate code values represent a valid surrogate pair; false otherwise.
      Since:
      1.5

      isTitleCase

      public static boolean isTitleCase(char ch)
      Determines if the specified character is a titlecase character.

      A character is a titlecase character if its general category type, provided by Character.getType(ch), is TITLECASE_LETTER.

      Some characters look like pairs of Latin letters. For example, there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form, which looks like "Lj", is the appropriate form to use when rendering a word in lowercase with initial capitals, as for a book title.

      These are some of the Unicode characters for which this method returns true:

      • LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON
      • LATIN CAPITAL LETTER L WITH SMALL LETTER J
      • LATIN CAPITAL LETTER N WITH SMALL LETTER J
      • LATIN CAPITAL LETTER D WITH SMALL LETTER Z

      Many other Unicode characters are titlecase too.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isTitleCase(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is titlecase; false otherwise.
      Since:
      1.0.2

      isTitleCase

      public static boolean isTitleCase(int codePoint)
      Determines if the specified character (Unicode code point) is a titlecase character.

      A character is a titlecase character if its general category type, provided by getType(codePoint), is TITLECASE_LETTER.

      Some characters look like pairs of Latin letters. For example, there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form, which looks like "Lj", is the appropriate form to use when rendering a word in lowercase with initial capitals, as for a book title.

      These are some of the Unicode characters for which this method returns true:

      • LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON
      • LATIN CAPITAL LETTER L WITH SMALL LETTER J
      • LATIN CAPITAL LETTER N WITH SMALL LETTER J
      • LATIN CAPITAL LETTER D WITH SMALL LETTER Z

      Many other Unicode characters are titlecase too.

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is titlecase; false otherwise.
      Since:
      1.5

      isUnicodeIdentifierPart

      public static boolean isUnicodeIdentifierPart(char ch)
      Determines if the specified character may be part of a Unicode identifier as other than the first character.

      A character may be part of a Unicode identifier if and only if one of the following statements is true:

      • it is a letter
      • it is a connecting punctuation character (such as '_')
      • it is a digit
      • it is a numeric letter (such as a Roman numeral character)
      • it is a combining mark
      • it is a non-spacing mark
      • isIdentifierIgnorable returns true for this character.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isUnicodeIdentifierPart(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character may be part of a Unicode identifier; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isUnicodeIdentifierPart(char ch)
         1:         
         2:                 while ((start != 0) && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
         3:                     start--;
         4:         ...
         5:                 
         6:                 if ((start != 0) && Character.isUnicodeIdentifierStart(document.getChar(start - 1)))
         7:                     start--;
         8:         ...
         9:             
        10:             while (start != 0 && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
        11:                 start--;
        12:         ...
        13:             
        14:             while (start != end && Character.isWhitespace(document.getChar(start)))

      View Full Code Here
         1:             
         2:             while (start != 0 && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
         3:                 start--;
         4:         ...
         5:             
         6:             while (start != end && Character.isWhitespace(document.getChar(start)))
         7:                 start++;
         8:         ...
         9:             
        10:             while (start != end && Character.isWhitespace(document.getChar(end - 1)))
        11:                 end--;

      View Full Code Here
         1:         final int length = text.length();
         2:         while (lower<length && Character.isWhitespace(text.charAt(lower))) {
         3:             lower++;
         4:         ...
         5:         int upper = lower;
         6:         while (upper<length && Character.isUnicodeIdentifierPart(text.charAt(upper))) {
         7:             upper++;
         8:         ...
         9:             lower = position.getIndex();        
        10:             if (!Character.isUnicodeIdentifierStart(text.charAt(lower))) {
        11:                 final Number number = parser.parseNumber(text, position);
        12:         ...
        13:             final char c = text.charAt(index);
        14:             if (Character.isWhitespace(c)) {

      View Full Code Here
         1:         final int length = text.length();
         2:         while (lower<length && Character.isSpaceChar(text.charAt(lower))) {
         3:             lower++;
         4:         ...
         5:         int upper = lower;
         6:         while (upper<length && Character.isUnicodeIdentifierPart(text.charAt(upper))) {
         7:             upper++;
         8:         ...
         9:             lower = position.getIndex();        
        10:             if (!Character.isUnicodeIdentifierStart(text.charAt(lower))) {
        11:                 final Number number;
        12:         ...
        13:             final char c = text.charAt(index);
        14:             if (Character.isSpaceChar(c)) {

      View Full Code Here
         1:             
         2:         switch (event.character) {
         3:             case ' ':
         4:         ...
         5:         boolean isJavadocTemplate= JavaDocContextType.NAME.equals(getContextId());
         6:         if (!Character.isUnicodeIdentifierStart(firstChar) && !(isJavadocTemplate && (firstChar == '<' || firstChar == '@')))
         7:             return false;
         8:         ...
         9:         for (int i= 1; i < nameLength - 1; i++) {
        10:             if (!Character.isUnicodeIdentifierPart(name.charAt(i)))
        11:                 return false;
        12:         ...
        13:         char lastChar= name.charAt(nameLength - 1);
        14:         return Character.isUnicodeIdentifierPart(lastChar) || isJavadocTemplate && lastChar == '>';

      View Full Code Here

      isUnicodeIdentifierPart

      public static boolean isUnicodeIdentifierPart(int codePoint)
      Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.

      A character may be part of a Unicode identifier if and only if one of the following statements is true:

      • it is a letter
      • it is a connecting punctuation character (such as '_')
      • it is a digit
      • it is a numeric letter (such as a Roman numeral character)
      • it is a combining mark
      • it is a non-spacing mark
      • isIdentifierIgnorable returns true for this character.
      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character may be part of a Unicode identifier; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isUnicodeIdentifierPart(int codePoint)
         1:         
         2:                 while ((start != 0) && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
         3:                     start--;
         4:         ...
         5:                 
         6:                 if ((start != 0) && Character.isUnicodeIdentifierStart(document.getChar(start - 1)))
         7:                     start--;
         8:         ...
         9:             
        10:             while (start != 0 && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
        11:                 start--;
        12:         ...
        13:             
        14:             while (start != end && Character.isWhitespace(document.getChar(start)))

      View Full Code Here
         1:             
         2:             while (start != 0 && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
         3:                 start--;
         4:         ...
         5:             
         6:             while (start != end && Character.isWhitespace(document.getChar(start)))
         7:                 start++;
         8:         ...
         9:             
        10:             while (start != end && Character.isWhitespace(document.getChar(end - 1)))
        11:                 end--;

      View Full Code Here
         1:         final int length = text.length();
         2:         while (lower<length && Character.isWhitespace(text.charAt(lower))) {
         3:             lower++;
         4:         ...
         5:         int upper = lower;
         6:         while (upper<length && Character.isUnicodeIdentifierPart(text.charAt(upper))) {
         7:             upper++;
         8:         ...
         9:             lower = position.getIndex();        
        10:             if (!Character.isUnicodeIdentifierStart(text.charAt(lower))) {
        11:                 final Number number = parser.parseNumber(text, position);
        12:         ...
        13:             final char c = text.charAt(index);
        14:             if (Character.isWhitespace(c)) {

      View Full Code Here
         1:         final int length = text.length();
         2:         while (lower<length && Character.isSpaceChar(text.charAt(lower))) {
         3:             lower++;
         4:         ...
         5:         int upper = lower;
         6:         while (upper<length && Character.isUnicodeIdentifierPart(text.charAt(upper))) {
         7:             upper++;
         8:         ...
         9:             lower = position.getIndex();        
        10:             if (!Character.isUnicodeIdentifierStart(text.charAt(lower))) {
        11:                 final Number number;
        12:         ...
        13:             final char c = text.charAt(index);
        14:             if (Character.isSpaceChar(c)) {

      View Full Code Here
         1:             
         2:         switch (event.character) {
         3:             case ' ':
         4:         ...
         5:         boolean isJavadocTemplate= JavaDocContextType.NAME.equals(getContextId());
         6:         if (!Character.isUnicodeIdentifierStart(firstChar) && !(isJavadocTemplate && (firstChar == '<' || firstChar == '@')))
         7:             return false;
         8:         ...
         9:         for (int i= 1; i < nameLength - 1; i++) {
        10:             if (!Character.isUnicodeIdentifierPart(name.charAt(i)))
        11:                 return false;
        12:         ...
        13:         char lastChar= name.charAt(nameLength - 1);
        14:         return Character.isUnicodeIdentifierPart(lastChar) || isJavadocTemplate && lastChar == '>';

      View Full Code Here

      isUnicodeIdentifierStart

      public static boolean isUnicodeIdentifierStart(char ch)
      Determines if the specified character is permissible as the first character in a Unicode identifier.

      A character may start a Unicode identifier if and only if one of the following conditions is true:

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isUnicodeIdentifierStart(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character may start a Unicode identifier; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isUnicodeIdentifierStart(char ch)
         1:         }
         2:         while (ch != END_OF_STREAM && Character.isWhitespace((char)ch));
         3: 
         4:         ...
         5:     private boolean isDigit( int ch ) {
         6:         return ch != END_OF_STREAM && Character.isDigit((char)ch);
         7:     }
         8:         ...
         9:     private boolean isIdentifierStart( int ch ) {
        10:         return Character.isUnicodeIdentifierStart((char)ch);
        11:     }
        12:         ...
        13:     private boolean isIdentifierPart( int ch ) {
        14:         return ch != -1 && Character.isUnicodeIdentifierPart((char)ch);

      View Full Code Here
         1:                 startDoubleQuote= ch == '"';
         2:             } while (Character.isUnicodeIdentifierStart(ch));
         3:             urlOffsetInLine++;
         4: 
         5:             if (!tokenizer.hasMoreTokens())

      View Full Code Here
         1:                 StyledText text = (StyledText) event.widget;
         2:                 if (event.character == ' ' || event.character == SWT.CR) {
         3:                     if (item != null) {
         4:         ...
         5:                 startDoubleQuote= ch == '"';
         6:             } while (Character.isUnicodeIdentifierStart(ch));
         7:             urlOffset++;
         8:             
         9:     

      View Full Code Here
         1:             ch=='-' || ch=='_' || ch==':'
         2:             || Character.isLetter(ch);
         3: 
         4:         ...
         5:   private boolean isFirstIdChar(int ch) {
         6:     return Character.isUnicodeIdentifierStart(ch);
         7:   }
         8:         ...
         9:       ch=next();
        10:       if (Character.isLetter(ch)) {
        11:         sb.append((char)ch);
        12:         ...
        13:       String entity=sb.toString();
        14:       Character entityChar = entityTable.get(entity);

      View Full Code Here

      isUnicodeIdentifierStart

      public static boolean isUnicodeIdentifierStart(int codePoint)
      Determines if the specified character (Unicode code point) is permissible as the first character in a Unicode identifier.

      A character may start a Unicode identifier if and only if one of the following conditions is true:

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character may start a Unicode identifier; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isUnicodeIdentifierStart(int codePoint)
         1:         }
         2:         while (ch != END_OF_STREAM && Character.isWhitespace((char)ch));
         3: 
         4:         ...
         5:     private boolean isDigit( int ch ) {
         6:         return ch != END_OF_STREAM && Character.isDigit((char)ch);
         7:     }
         8:         ...
         9:     private boolean isIdentifierStart( int ch ) {
        10:         return Character.isUnicodeIdentifierStart((char)ch);
        11:     }
        12:         ...
        13:     private boolean isIdentifierPart( int ch ) {
        14:         return ch != -1 && Character.isUnicodeIdentifierPart((char)ch);

      View Full Code Here
         1:                 startDoubleQuote= ch == '"';
         2:             } while (Character.isUnicodeIdentifierStart(ch));
         3:             urlOffsetInLine++;
         4: 
         5:             if (!tokenizer.hasMoreTokens())

      View Full Code Here
         1:                 StyledText text = (StyledText) event.widget;
         2:                 if (event.character == ' ' || event.character == SWT.CR) {
         3:                     if (item != null) {
         4:         ...
         5:                 startDoubleQuote= ch == '"';
         6:             } while (Character.isUnicodeIdentifierStart(ch));
         7:             urlOffset++;
         8:             
         9:     

      View Full Code Here
         1:             ch=='-' || ch=='_' || ch==':'
         2:             || Character.isLetter(ch);
         3: 
         4:         ...
         5:   private boolean isFirstIdChar(int ch) {
         6:     return Character.isUnicodeIdentifierStart(ch);
         7:   }
         8:         ...
         9:       ch=next();
        10:       if (Character.isLetter(ch)) {
        11:         sb.append((char)ch);
        12:         ...
        13:       String entity=sb.toString();
        14:       Character entityChar = entityTable.get(entity);

      View Full Code Here

      isUpperCase

      public static boolean isUpperCase(char ch)
      Determines if the specified character is an uppercase character.

      A character is uppercase if its general category type, provided by Character.getType(ch), is UPPERCASE_LETTER.

      The following are examples of uppercase characters:

       A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
       '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7'
       '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF'
       '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8'
       '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE'
       

      Many other Unicode characters are uppercase too.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isUpperCase(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is uppercase; false otherwise.
      Since:
      1.0
      Usages and Demos :

      View More Examples of isUpperCase(char ch)
         1:             if (value.length() > 1 &&
         2:                   Character.isLowerCase(value.charAt(0)) && Character.isUpperCase(value.charAt(1))) {
         3:         ...
         4:                value = Character.toUpperCase(value.charAt(0)) + value.substring(1);
         5:             }
         6:          }
         7:       }

      View Full Code Here
         1:       if (string.length() > 1 &&
         2:             Character.isLowerCase(string.charAt(0)) && Character.isUpperCase(string.charAt(1))) {
         3:         ...
         4:          return Character.toUpperCase(string.charAt(0)) + string.substring(1);
         5:       }
         6:         ...
         7:       }
         8:       String temp = Character.toUpperCase(string.charAt(0)) +
         9:             (string.length() > 1 ? string.substring(1).toLowerCase() : "");

      View Full Code Here
         1:         continue;
         2:       else if (Character.isUpperCase(chA) &&
         3:         ...
         4:            Character.isLowerCase(chB)) {
         5:         cmp = -1;
         6:         ...
         7:       }
         8:       else if (Character.isLowerCase(chA) &&
         9:         ...
        10:            Character.isUpperCase(chB)) {

      View Full Code Here
         1:     private int toKey(char c) {
         2:         int lower = Character.toUpperCase(c);
         3:         if (!isOccupied(lower)) {
         4:         ...
         5:         protected boolean matches(char c) {
         6:             return Character.isUpperCase(c);
         7:         }
         8:         ...
         9:         protected boolean matches(char c) {
        10:             return Character.isLetterOrDigit(c);
        11:         }

      View Full Code Here
         1:     public boolean isUpperCase() {
         2:         return Character.isUpperCase(getConversionType());
         3:     }
         4: 
         5:     public boolean isFlag(char c) {

      View Full Code Here

      isUpperCase

      public static boolean isUpperCase(int codePoint)
      Determines if the specified character (Unicode code point) is an uppercase character.

      A character is uppercase if its general category type, provided by getType(codePoint), is UPPERCASE_LETTER.

      The following are examples of uppercase characters:

       A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
       '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7'
       '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF'
       '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8'
       '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE'
       

      Many other Unicode characters are uppercase too.

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is uppercase; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isUpperCase(int codePoint)
         1:             if (value.length() > 1 &&
         2:                   Character.isLowerCase(value.charAt(0)) && Character.isUpperCase(value.charAt(1))) {
         3:         ...
         4:                value = Character.toUpperCase(value.charAt(0)) + value.substring(1);
         5:             }
         6:          }
         7:       }

      View Full Code Here
         1:       if (string.length() > 1 &&
         2:             Character.isLowerCase(string.charAt(0)) && Character.isUpperCase(string.charAt(1))) {
         3:         ...
         4:          return Character.toUpperCase(string.charAt(0)) + string.substring(1);
         5:       }
         6:         ...
         7:       }
         8:       String temp = Character.toUpperCase(string.charAt(0)) +
         9:             (string.length() > 1 ? string.substring(1).toLowerCase() : "");

      View Full Code Here
         1:         continue;
         2:       else if (Character.isUpperCase(chA) &&
         3:         ...
         4:            Character.isLowerCase(chB)) {
         5:         cmp = -1;
         6:         ...
         7:       }
         8:       else if (Character.isLowerCase(chA) &&
         9:         ...
        10:            Character.isUpperCase(chB)) {

      View Full Code Here
         1:     private int toKey(char c) {
         2:         int lower = Character.toUpperCase(c);
         3:         if (!isOccupied(lower)) {
         4:         ...
         5:         protected boolean matches(char c) {
         6:             return Character.isUpperCase(c);
         7:         }
         8:         ...
         9:         protected boolean matches(char c) {
        10:             return Character.isLetterOrDigit(c);
        11:         }

      View Full Code Here
         1:     public boolean isUpperCase() {
         2:         return Character.isUpperCase(getConversionType());
         3:     }
         4: 
         5:     public boolean isFlag(char c) {

      View Full Code Here

      isValidCodePoint

      public static boolean isValidCodePoint(int codePoint)
      Determines whether the specified code point is a valid Unicode code point value in the range of 0x0000 to 0x10FFFF inclusive. This method is equivalent to the expression:
       codePoint >= 0x0000 && codePoint <= 0x10FFFF
       
      Parameters:
      codePoint - the Unicode code point to be tested
      Returns:
      true if the specified code point value is a valid code point value; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isValidCodePoint(int codePoint)
         1:   {
         2:     return Character.isLetterOrDigit(ch);
         3:   }
         4:         ...
         5:   {
         6:     return Character.isLetter(ch);
         7:   }
         8:         ...
         9:   {
        10:     return Character.isISOControl(ch);
        11:   }
        12:         ...
        13:   {
        14:     return Character.isValidCodePoint(ch) && !Character.isISOControl(ch);

      View Full Code Here
         1:     
         2:     StringBuilder sb = new StringBuilder(Character.MAX_VALUE * 2);
         3:     
         4:         ...
         5:     for (int i = 0; i < Character.MAX_VALUE; i++) 
         6:       sb.append((char) i);
         7:         ...
         8:     {
         9:       assert Character.isValidCodePoint(i) : Integer.toHexString(i);
        10:       sb.appendCodePoint(i);

      View Full Code Here

      isWhitespace

      public static boolean isWhitespace(char ch)
      Determines if the specified character is white space according to Java. A character is a Java whitespace character if and only if it satisfies one of the following criteria:
      • It is a Unicode space character (SPACE_SEPARATOR, LINE_SEPARATOR, or PARAGRAPH_SEPARATOR) but is not also a non-breaking space ('\u00A0', '\u2007', '\u202F').
      • It is '\u0009', HORIZONTAL TABULATION.
      • It is '\u000A', LINE FEED.
      • It is '\u000B', VERTICAL TABULATION.
      • It is '\u000C', FORM FEED.
      • It is '\u000D', CARRIAGE RETURN.
      • It is '\u001C', FILE SEPARATOR.
      • It is '\u001D', GROUP SEPARATOR.
      • It is '\u001E', RECORD SEPARATOR.
      • It is '\u001F', UNIT SEPARATOR.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isWhitespace(int) method.

      Parameters:
      ch - the character to be tested.
      Returns:
      true if the character is a Java whitespace character; false otherwise.
      Since:
      1.1
      Usages and Demos :

      View More Examples of isWhitespace(char ch)
         1:     public static boolean isSeparator(char c) {
         2:         return Character.isWhitespace(c);
         3:     }
         4: 
         5: }

      View Full Code Here
         1:     public boolean isWhitespace(char c) {
         2:         return Character.isWhitespace(c);
         3:     }
         4: }

      View Full Code Here
         1:             return false;
         2:         return Character.isWhitespace((char) c);
         3:     }
         4: 
         5:     private InputStream getContents(Object resource, IProgressMonitor monitor) throws TeamException {

      View Full Code Here
         1:   {
         2:     return Character.isWhitespace(c);
         3:   }
         4:         ...
         5:     else
         6:     if(  Character.isDigit(c)
         7:         ...
         8:      ||((c=='-')&&Character.isDigit(peek()))
         9:         ...
        10:      ||((c=='+')&&Character.isDigit(peek())))

      View Full Code Here
         1:                     char c = text.charAt(0);
         2:                         Character.isWhitespace(c) || c == '!') {
         3:                         e.doit = false;
         4:                         return;
         5:                     }

      View Full Code Here

      isWhitespace

      public static boolean isWhitespace(int codePoint)
      Determines if the specified character (Unicode code point) is white space according to Java. A character is a Java whitespace character if and only if it satisfies one of the following criteria:
      • It is a Unicode space character (SPACE_SEPARATOR, LINE_SEPARATOR, or PARAGRAPH_SEPARATOR) but is not also a non-breaking space ('\u00A0', '\u2007', '\u202F').
      • It is '\u0009', HORIZONTAL TABULATION.
      • It is '\u000A', LINE FEED.
      • It is '\u000B', VERTICAL TABULATION.
      • It is '\u000C', FORM FEED.
      • It is '\u000D', CARRIAGE RETURN.
      • It is '\u001C', FILE SEPARATOR.
      • It is '\u001D', GROUP SEPARATOR.
      • It is '\u001E', RECORD SEPARATOR.
      • It is '\u001F', UNIT SEPARATOR.

      Parameters:
      codePoint - the character (Unicode code point) to be tested.
      Returns:
      true if the character is a Java whitespace character; false otherwise.
      Since:
      1.5
      Usages and Demos :

      View More Examples of isWhitespace(int codePoint)
         1:     public static boolean isSeparator(char c) {
         2:         return Character.isWhitespace(c);
         3:     }
         4: 
         5: }

      View Full Code Here
         1:     public boolean isWhitespace(char c) {
         2:         return Character.isWhitespace(c);
         3:     }
         4: }

      View Full Code Here
         1:             return false;
         2:         return Character.isWhitespace((char) c);
         3:     }
         4: 
         5:     private InputStream getContents(Object resource, IProgressMonitor monitor) throws TeamException {

      View Full Code Here
         1:   {
         2:     return Character.isWhitespace(c);
         3:   }
         4:         ...
         5:     else
         6:     if(  Character.isDigit(c)
         7:         ...
         8:      ||((c=='-')&&Character.isDigit(peek()))
         9:         ...
        10:      ||((c=='+')&&Character.isDigit(peek())))

      View Full Code Here
         1:                     char c = text.charAt(0);
         2:                         Character.isWhitespace(c) || c == '!') {
         3:                         e.doit = false;
         4:                         return;
         5:                     }

      View Full Code Here

      offsetByCodePoints

      public static int offsetByCodePoints(char[] a,
                                           int start,
                                           int count,
                                           int index,
                                           int codePointOffset)
      Returns the index within the given char subarray that is offset from the given index by codePointOffset code points. The start and count arguments specify a subarray of the char array. Unpaired surrogates within the text range given by index and codePointOffset count as one code point each.
      Parameters:
      a - the char array
      start - the index of the first char of the subarray
      count - the length of the subarray in chars
      index - the index to be offset
      codePointOffset - the offset in code points
      Returns:
      the index within the subarray
      Throws:
      NullPointerException - if a is null.
      IndexOutOfBoundsException - if start or count is negative, or if start + count is larger than the length of the given array, or if index is less than start or larger then start + count, or if codePointOffset is positive and the text range starting with index and ending with start + count - 1 has fewer than codePointOffset code points, or if codePointOffset is negative and the text range starting with start and ending with index - 1 has fewer than the absolute value of codePointOffset code points.
      Since:
      1.5

      offsetByCodePoints

      public static int offsetByCodePoints(CharSequence seq,
                                           int index,
                                           int codePointOffset)
      Returns the index within the given char sequence that is offset from the given index by codePointOffset code points. Unpaired surrogates within the text range given by index and codePointOffset count as one code point each.
      Parameters:
      seq - the char sequence
      index - the index to be offset
      codePointOffset - the offset in code points
      Returns:
      the index within the char sequence
      Throws:
      NullPointerException - if seq is null.
      IndexOutOfBoundsException - if index is negative or larger then the length of the char sequence, or if codePointOffset is positive and the subsequence starting with index has fewer than codePointOffset code points, or if codePointOffset is negative and the subsequence before index has fewer than the absolute value of codePointOffset code points.
      Since:
      1.5

      reverseBytes

      public static char reverseBytes(char ch)
      Returns the value obtained by reversing the order of the bytes in the specified char value.
      Returns:
      the value obtained by reversing (or, equivalently, swapping) the bytes in the specified char value.
      Since:
      1.5

      toChars

      public static char[] toChars(int codePoint)
      Converts the specified character (Unicode code point) to its UTF-16 representation stored in a char array. If the specified code point is a BMP (Basic Multilingual Plane or Plane 0) value, the resulting char array has the same value as codePoint. If the specified code point is a supplementary code point, the resulting char array has the corresponding surrogate pair.
      Parameters:
      codePoint - a Unicode code point
      Returns:
      a char array having codePoint's UTF-16 representation.
      Throws:
      IllegalArgumentException - if the specified codePoint is not a valid Unicode code point.
      Since:
      1.5
      Usages and Demos :

      View More Examples of toChars(int codePoint)
         1:   {
         2:     if (Character.isHighSurrogate(c)) {
         3:       throw new IllegalArgumentException();
         4:         ...
         5:   {
         6:     if (! Character.isValidCodePoint(codePoint)) {
         7:       throw new IllegalArgumentException();
         8:         ...
         9:   {
        10:     if (! Character.isSurrogatePair(high, low)) {
        11:       throw new IllegalArgumentException();
        12:         ...
        13:   {
        14:     return String.valueOf(Character.toChars(codePoint_));

      View Full Code Here
         1:     this.modCount++;
         2:     if (Character.charCount(e) == 1)
         3:     {
         4:         ...
         5:     this.modCount++;
         6:     if (Character.charCount(e) == 1)
         7:     {
         8:         ...
         9:       else
        10:         this.delegate.insert(index, Character.toChars(e), 0, 2);
        11:       return 2;

      View Full Code Here
         1:     this.modCount++;
         2:     if (Character.charCount(e) == 1)
         3:     {
         4:         ...
         5:     this.modCount++;
         6:     if (Character.charCount(e) == 1)
         7:     {
         8:         ...
         9:       else
        10:         this.delegate.insert(index, Character.toChars(e), 0, 2);
        11:       return 2;

      View Full Code Here
         1:         reset();
         2:         error("required character (got U+" + Integer.toHexString(c) + ")",
         3:         ...
         4:               new Character(delim));
         5:       }
         6:         ...
         7:                 if (!isXML11Char(c) || isXML11RestrictedChar(c))
         8:                   error("illegal XML 1.1 character",
         9:                         "U+" + Integer.toHexString(c));
        10:         ...
        11:                     "U+" + Integer.toHexString(c));
        12:             buf.append(Character.toChars(c));

      View Full Code Here

      toChars

      public static int toChars(int codePoint,
                                char[] dst,
                                int dstIndex)
      Converts the specified character (Unicode code point) to its UTF-16 representation. If the specified code point is a BMP (Basic Multilingual Plane or Plane 0) value, the same value is stored in dst[dstIndex], and 1 is returned. If the specified code point is a supplementary character, its surrogate values are stored in dst[dstIndex] (high-surrogate) and dst[dstIndex+1] (low-surrogate), and 2 is returned.
      Parameters:
      codePoint - the character (Unicode code point) to be converted.
      dst - an array of char in which the codePoint's UTF-16 value is stored.
      dstIndex - the start index into the dst array where the converted value is stored.
      Returns:
      1 if the code point is a BMP code point, 2 if the code point is a supplementary code point.
      Throws:
      IllegalArgumentException - if the specified codePoint is not a valid Unicode code point.
      NullPointerException - if the specified dst is null.
      IndexOutOfBoundsException - if dstIndex is negative or not less than dst.length, or if dst at dstIndex doesn't have enough array element(s) to store the resulting char value(s). (If dstIndex is equal to dst.length-1 and the specified codePoint is a supplementary character, the high-surrogate value is not stored in dst[dstIndex].)
      Since:
      1.5

      toCodePoint

      public static int toCodePoint(char high,
                                    char low)
      Converts the specified surrogate pair to its supplementary code point value. This method does not validate the specified surrogate pair. The caller must validate it using isSurrogatePair if necessary.
      Parameters:
      high - the high-surrogate code unit
      low - the low-surrogate code unit
      Returns:
      the supplementary code point composed from the specified surrogate pair.
      Since:
      1.5
      Usages and Demos :

      View More Examples of toCodePoint(char high,char low)
         1:     char c1 = this.array[index];
         2:     if (Character.isHighSurrogate(c1) && (++index < this.offset + this.length)) 
         3:     {
         4:         ...
         5:         char c2 = this.array[index];
         6:         if (Character.isLowSurrogate(c2)) 
         7:       {
         8:         ...
         9:         return Character.toCodePoint(c1, c2);
        10:         }
        11:         ...
        12:     char c2 = this.array[i--];
        13:     if (Character.isLowSurrogate(c2) && (i >= this.offset)) 

      View Full Code Here
         1:     if (inputLength == input.length) {
         2:             if (input.length > 0 && Character.isWhitespace(input[input.length - 1])) {
         3:                 inputLength--;
         4:         ...
         5:     char c = ch;
         6:     int result = Character.digit(c, base);
         7:     if (result >= 0 && c > 0x7f) {
         8:         ...
         9:                         }
        10:                         isJavaIdentifierPart = Character.isJavaIdentifierPart(
        11:         ...
        12:                             Character.toCodePoint(high, ch));

      View Full Code Here
         1:     this.modCount++;
         2:     if (Character.isHighSurrogate(high) && (index < gap.size - 1))
         3:     {
         4:         ...
         5:       char low = gap.chars[gap.toArrayIndexUnsafe(index + 1)];
         6:       if (Character.isLowSurrogate(low))
         7:       {
         8:         ...
         9:         gap.clear(index, index + 2);
        10:         return Character.toCodePoint(high, low);
        11:       }
        12:         ...
        13:     
        14:     if (Character.isHighSurrogate(c1) && (++index < gap.size)) 

      View Full Code Here
         1:   
         2:   public static Iterator<Character> box(CharIterator delegate)
         3:   {
         4:         ...
         5:   
         6:   public static ListIterator<Character> box(CharListIterator delegate)
         7:   {
         8:         ...
         9:   
        10:   public static CharIterator unbox(Iterator<Character> delegate)
        11:   {
        12:         ...
        13:         {
        14:           return Character.toCodePoint(high, low);

      View Full Code Here
         1:     {
         2:       char le = Character.toLowerCase(e);
         3:         ...
         4:       char ue = Character.toUpperCase(e);
         5:       if (le == ue)
         6:         ...
         7:     {
         8:       char l = Character.toLowerCase(oldChar);
         9:       char u = Character.toUpperCase(oldChar);
        10:         ...
        11:             {
        12:               int raws   = Character.toCodePoint(prev, raw);

      View Full Code Here

      toLowerCase

      public static char toLowerCase(char ch)
      Converts the character argument to lowercase using case mapping information from the UnicodeData file.

      Note that Character.isLowerCase(Character.toLowerCase(ch)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

      In general, String.toLowerCase() should be used to map characters to lowercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the toLowerCase(int) method.

      Parameters:
      ch - the character to be converted.
      Returns:
      the lowercase equivalent of the character, if any; otherwise, the character itself.
      Usages and Demos :

      View More Examples of toLowerCase(char ch)
         1:         public double matchScore(char c,char d) {
         2:             return Character.toLowerCase(c)==Character.toLowerCase(d) ? 2 : -1;
         3:         }
         4:     };
         5:     

      View Full Code Here
         1:     protected char normalize(char c) {
         2:         return Character.toLowerCase(c);
         3:     }
         4:         ...
         5:     protected boolean isTokenChar(char c) {
         6:         return Character.isLetterOrDigit(c);
         7:     }
         8: 
         9: }

      View Full Code Here
         1:             if (j==blen) return +1;
         2:             int diff = Character.toLowerCase(a1[i]) -
         3:         ...
         4:                              Character.toLowerCase(b1[j]);
         5:             i++;
         6:         ...
         7:             if (diff!=0) {
         8:                 return (Character.isLowerCase(a1[i-1]) ? -1 : +1);
         9:             }

      View Full Code Here
         1:   protected char normalize(char c) {
         2:     return Character.toLowerCase(c);
         3:   }
         4: }

      View Full Code Here
         1:         protected char normalize(char c) {
         2:             return Character.toLowerCase(c);
         3:         }
         4:         ...
         5:         protected boolean isTokenChar(char c) {
         6:             return (Character.isLetter(c) || Character.isDigit(c));
         7:         }
         8:     }
         9: }

      View Full Code Here

      toLowerCase

      public static int toLowerCase(int codePoint)
      Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.

      Note that Character.isLowerCase(Character.toLowerCase(codePoint)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

      In general, String.toLowerCase() should be used to map characters to lowercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

      Parameters:
      codePoint - the character (Unicode code point) to be converted.
      Returns:
      the lowercase equivalent of the character (Unicode code point), if any; otherwise, the character itself.
      Since:
      1.5
      Usages and Demos :

      View More Examples of toLowerCase(int codePoint)
         1:         public double matchScore(char c,char d) {
         2:             return Character.toLowerCase(c)==Character.toLowerCase(d) ? 2 : -1;
         3:         }
         4:     };
         5:     

      View Full Code Here
         1:     protected char normalize(char c) {
         2:         return Character.toLowerCase(c);
         3:     }
         4:         ...
         5:     protected boolean isTokenChar(char c) {
         6:         return Character.isLetterOrDigit(c);
         7:     }
         8: 
         9: }

      View Full Code Here
         1:             if (j==blen) return +1;
         2:             int diff = Character.toLowerCase(a1[i]) -
         3:         ...
         4:                              Character.toLowerCase(b1[j]);
         5:             i++;
         6:         ...
         7:             if (diff!=0) {
         8:                 return (Character.isLowerCase(a1[i-1]) ? -1 : +1);
         9:             }

      View Full Code Here
         1:   protected char normalize(char c) {
         2:     return Character.toLowerCase(c);
         3:   }
         4: }

      View Full Code Here
         1:         protected char normalize(char c) {
         2:             return Character.toLowerCase(c);
         3:         }
         4:         ...
         5:         protected boolean isTokenChar(char c) {
         6:             return (Character.isLetter(c) || Character.isDigit(c));
         7:         }
         8:     }
         9: }

      View Full Code Here

      toString

      public String toString()
      Returns a String object representing this Character's value. The result is a string of length 1 whose sole component is the primitive char value represented by this Character object.
      Overrides:
      toString in interface Object
      Returns:
      a string representation of this object.
      Usages and Demos :

      View More Examples of toString()
         1: public class StarWarsBindingImpl implements samples.xbeans.StarWarsPortType{
         2:     com.superflaco.xbeans.Character stashed;
         3:     
         4:         ...
         5:     public com.superflaco.xbeans.Character getChewbecca() throws java.rmi.RemoteException {
         6:         ...
         7:         com.superflaco.xbeans.Character chewie =
         8:             com.superflaco.xbeans.Character.Factory.newInstance();
         9:         ...
        10:         if (newChew != null) {
        11:             System.out.println("old: " + stashed.toString());

      View Full Code Here
         1: 
         2:         com.superflaco.xbeans.Character value = null;
         3:         value = binding.getChewbecca();
         4:         ...
         5:         
         6:         System.out.println(value.toString());
         7:     }
         8: }

      View Full Code Here
         1:     public String toAttributeValue(final Object o) {
         2:         final Character in = (Character) o;
         3:         ...
         4:         return in.toString();
         5:     }
         6:         ...
         7:         }
         8:         return new Character(s.charAt(0));
         9:     }

      View Full Code Here
         1:                 if (thisArg.length() > 2) {
         2:                     Character chr = new Character(thisArg.charAt(1));
         3:                     if (commands.contains(chr)) {
         4:         ...
         5:                         String key = chr.toString();
         6:                         String val = thisArg.substring(2);
         7:         ...
         8:     public void addCommand(char command) {
         9:         commands.add(new Character(command));
        10:     }

      View Full Code Here
         1: 
         2:     public BracketNode(Character bracket) throws IllegalArgumentException {
         3:         bracketType = getBracketType(bracket);
         4:         ...
         5: 
         6:     public BracketNode(Character bracket, TreeNode child) throws IllegalArgumentException {
         7:         bracketType = getBracketType(bracket);
         8:         ...
         9: 
        10:     public Character getLeftBracket() {
        11:         return getLeftBracket(this.bracketType);
        12:         ...
        13:     public static int getBracketType(Character bracket) throws IllegalArgumentException {
        14:         if (bracket.toString().equals("(") || bracket.toString().equals(")")) return STANDARD_BRACKET;

      View Full Code Here

      toString

      public static String toString(char c)
      Returns a String object representing the specified char. The result is a string of length 1 consisting solely of the specified char.
      Parameters:
      c - the char to be converted
      Returns:
      the string representation of the specified char
      Since:
      1.4
      Usages and Demos :

      View More Examples of toString(char c)
         1: 
         2:     private static String[] colName = { "Character", "Num Correct", "Num Incorrect" };
         3:     private static int[] charAt = {
         4:         ...
         5:             switch(col) {
         6:                 case 0: return Character.toString((char)charAt[row]);
         7:         ...
         8:             case 1: return Integer.toString(counter.getCorrectNum(charAt[row]));
         9:         ...
        10:             case 2: return Integer.toString(counter.getIncorrectNum(charAt[row]));

      View Full Code Here
         1:   {
         2:     return Character.toString((char) getValue());
         3:   }
         4: }

      View Full Code Here
         1:   {
         2:     return Character.toString((char) getValue());
         3:   }
         4: }

      View Full Code Here
         1:   {
         2:     return Character.toString((char) getValue());
         3:   }
         4: }

      View Full Code Here
         1:   {
         2:     return Character.toString((char) getValue());
         3:   }
         4: }

      View Full Code Here

      toTitleCase

      public static char toTitleCase(char ch)
      Converts the character argument to titlecase using case mapping information from the UnicodeData file. If a character has no explicit titlecase mapping and is not itself a titlecase char according to UnicodeData, then the uppercase mapping is returned as an equivalent titlecase mapping. If the char argument is already a titlecase char, the same char value will be returned.

      Note that Character.isTitleCase(Character.toTitleCase(ch)) does not always return true for some ranges of characters.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the toTitleCase(int) method.

      Parameters:
      ch - the character to be converted.
      Returns:
      the titlecase equivalent of the character, if any; otherwise, the character itself.
      Since:
      1.0.2
      Usages and Demos :

      View More Examples of toTitleCase(char ch)
         1:         for(int i=0;i<temp.length;i++)
         2:             temp[i] = Character.toTitleCase(temp[i]);
         3:         letradetitulo = new String(temp);
         4: 
         5:         anchocadena = fm.stringWidth(letradetitulo);

      View Full Code Here
         1:       char c = textArray[i];
         2:       if (Character.isWhitespace(c))
         3:       {
         4:         ...
         5:         {
         6:           textArray[i] = Character.toTitleCase(c);
         7:         }
         8:         if (firstWordOnly)
         9:         {

      View Full Code Here
         1:             String className     = "org.apache.ojb.broker.platforms."+
         2:                                    Character.toTitleCase(_handling.charAt(0))+_handling.substring(1)+
         3:                                    "DBHandling";
         4:             Class  handlingClass = ClassHelper.getClass(className);
      

      View Full Code Here
         1:             {
         2:                 if (!Character.isTitleCase(titleName.charAt(wordIndex+1)))
         3:                 {
         4:         ...
         5:                     makeTitle.append(titleName.substring(0, wordIndex+1));
         6:                     makeTitle.append(Character.toTitleCase(titleName.charAt(wordIndex+1)));
         7:                     makeTitle.append(titleName.substring(wordIndex+2));
         8:                     titleName = makeTitle.toString();
         9:                 }

      View Full Code Here
         1:             if(delimiters == null) {
         2:                 isDelimiter = Character.isWhitespace(ch);
         3:             } else {
         4:         ...
         5:             } else if (capitalizeNext) {
         6:                 buffer.append(Character.toTitleCase(ch));
         7:                 capitalizeNext = false;
         8:         ...
         9:             if(delimiters == null) {
        10:                 isDelimiter = Character.isWhitespace(ch);
        11:             } else {
        12:         ...
        13:             } else if (uncapitalizeNext) {
        14:                 buffer.append(Character.toLowerCase(ch));

      View Full Code Here

      toTitleCase

      public static int toTitleCase(int codePoint)
      Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file. If a character has no explicit titlecase mapping and is not itself a titlecase char according to UnicodeData, then the uppercase mapping is returned as an equivalent titlecase mapping. If the character argument is already a titlecase character, the same character value will be returned.

      Note that Character.isTitleCase(Character.toTitleCase(codePoint)) does not always return true for some ranges of characters.

      Parameters:
      codePoint - the character (Unicode code point) to be converted.
      Returns:
      the titlecase equivalent of the character, if any; otherwise, the character itself.
      Since:
      1.5
      Usages and Demos :

      View More Examples of toTitleCase(int codePoint)
         1:         for(int i=0;i<temp.length;i++)
         2:             temp[i] = Character.toTitleCase(temp[i]);
         3:         letradetitulo = new String(temp);
         4: 
         5:         anchocadena = fm.stringWidth(letradetitulo);

      View Full Code Here
         1:       char c = textArray[i];
         2:       if (Character.isWhitespace(c))
         3:       {
         4:         ...
         5:         {
         6:           textArray[i] = Character.toTitleCase(c);
         7:         }
         8:         if (firstWordOnly)
         9:         {

      View Full Code Here
         1:             String className     = "org.apache.ojb.broker.platforms."+
         2:                                    Character.toTitleCase(_handling.charAt(0))+_handling.substring(1)+
         3:                                    "DBHandling";
         4:             Class  handlingClass = ClassHelper.getClass(className);
      

      View Full Code Here
         1:             {
         2:                 if (!Character.isTitleCase(titleName.charAt(wordIndex+1)))
         3:                 {
         4:         ...
         5:                     makeTitle.append(titleName.substring(0, wordIndex+1));
         6:                     makeTitle.append(Character.toTitleCase(titleName.charAt(wordIndex+1)));
         7:                     makeTitle.append(titleName.substring(wordIndex+2));
         8:                     titleName = makeTitle.toString();
         9:                 }

      View Full Code Here
         1:             if(delimiters == null) {
         2:                 isDelimiter = Character.isWhitespace(ch);
         3:             } else {
         4:         ...
         5:             } else if (capitalizeNext) {
         6:                 buffer.append(Character.toTitleCase(ch));
         7:                 capitalizeNext = false;
         8:         ...
         9:             if(delimiters == null) {
        10:                 isDelimiter = Character.isWhitespace(ch);
        11:             } else {
        12:         ...
        13:             } else if (uncapitalizeNext) {
        14:                 buffer.append(Character.toLowerCase(ch));

      View Full Code Here

      toUpperCase

      public static char toUpperCase(char ch)
      Converts the character argument to uppercase using case mapping information from the UnicodeData file.

      Note that Character.isUpperCase(Character.toUpperCase(ch)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

      In general, String.toUpperCase() should be used to map characters to uppercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

      Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the toUpperCase(int) method.

      Parameters:
      ch - the character to be converted.
      Returns:
      the uppercase equivalent of the character, if any; otherwise, the character itself.
      Usages and Demos :

      View More Examples of toUpperCase(char ch)
         1:     char c = propName.charAt( 0 );
         2:     return Character.toUpperCase(c) + propName.substring(1);
         3:     }
         4: 
         5:     public static void writeArgList(Property[] props, boolean declare_types, IndentedWriter iw ) throws IOException

      View Full Code Here
         1:     String methodName = ("get" +
         2:              Character.toUpperCase(_name.charAt(0)) +
         3:              _name.substring(1));
         4:         ...
         5:     String methodName = ("set" +
         6:              Character.toUpperCase(_name.charAt(0)) +
         7:              _name.substring(1));
         8:         ...
         9: 
        10:       if (! Character.isUpperCase(ch))
        11:     cb.append(ch);
        12:         ...
        13:       else if (i > 0 && ! Character.isUpperCase(name.charAt(i - 1))) {

      View Full Code Here
         1:         StringBuffer sb = new StringBuffer(sug);
         2:         while (sb.length() > 0 && Character.isDigit(sb.charAt(0))) {
         3:             sb.deleteCharAt(0);
         4:         ...
         5:         return sb.replace(0, 1,
         6:                 Character.toString(Character.toUpperCase(sb.charAt(0))))
         7:                 .toString();
         8:     }
      

      View Full Code Here
         1: 
         2:     private Hashtable<String, Hashtable<Character, Character>> table = new Hashtable<String, Hashtable<Character, Character>>();
         3: 
         4:         ...
         5:     private Hashtable<Character, String> charToMacro = new Hashtable<Character, String>();
         6: 
         7:         ...
         8:                             charToAscii.put(translated, c);
         9:                             charToAscii.put(Character.toUpperCase(translated),
        10:         ...
        11:                                     Character.toUpperCase(c));

      View Full Code Here
         1:         int modifiers = event.stateMask & SWT.MODIFIER_MASK;
         2:         char character = topKey(event);
         3:         ...
         4:         return modifiers + toUpperCase(character);
         5:     }
         6:         ...
         7:         int modifiers = stateMask & SWT.MODIFIER_MASK;
         8:         int character = keyCode;
         9:         return modifiers + toUpperCase(character);
        10:         ...
        11:         final char character = (char) keyCode;
        12:         return Character.isLetter(character) ? Character.toUpperCase(character)

      View Full Code Here

      toUpperCase

      public static int toUpperCase(int codePoint)
      Converts the character (Unicode code point) argument to uppercase using case mapping information from the UnicodeData file.

      Note that Character.isUpperCase(Character.toUpperCase(codePoint)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

      In general, String.toUpperCase() should be used to map characters to uppercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

      Parameters:
      codePoint - the character (Unicode code point) to be converted.
      Returns:
      the uppercase equivalent of the character, if any; otherwise, the character itself.
      Since:
      1.5
      Usages and Demos :

      View More Examples of toUpperCase(int codePoint)
         1:     char c = propName.charAt( 0 );
         2:     return Character.toUpperCase(c) + propName.substring(1);
         3:     }
         4: 
         5:     public static void writeArgList(Property[] props, boolean declare_types, IndentedWriter iw ) throws IOException

      View Full Code Here
         1:     String methodName = ("get" +
         2:              Character.toUpperCase(_name.charAt(0)) +
         3:              _name.substring(1));
         4:         ...
         5:     String methodName = ("set" +
         6:              Character.toUpperCase(_name.charAt(0)) +
         7:              _name.substring(1));
         8:         ...
         9: 
        10:       if (! Character.isUpperCase(ch))
        11:     cb.append(ch);
        12:         ...
        13:       else if (i > 0 && ! Character.isUpperCase(name.charAt(i - 1))) {

      View Full Code Here
         1:         StringBuffer sb = new StringBuffer(sug);
         2:         while (sb.length() > 0 && Character.isDigit(sb.charAt(0))) {
         3:             sb.deleteCharAt(0);
         4:         ...
         5:         return sb.replace(0, 1,
         6:                 Character.toString(Character.toUpperCase(sb.charAt(0))))
         7:                 .toString();
         8:     }
      

      View Full Code Here
         1: 
         2:     private Hashtable<String, Hashtable<Character, Character>> table = new Hashtable<String, Hashtable<Character, Character>>();
         3: 
         4:         ...
         5:     private Hashtable<Character, String> charToMacro = new Hashtable<Character, String>();
         6: 
         7:         ...
         8:                             charToAscii.put(translated, c);
         9:                             charToAscii.put(Character.toUpperCase(translated),
        10:         ...
        11:                                     Character.toUpperCase(c));

      View Full Code Here
         1:         int modifiers = event.stateMask & SWT.MODIFIER_MASK;
         2:         char character = topKey(event);
         3:         ...
         4:         return modifiers + toUpperCase(character);
         5:     }
         6:         ...
         7:         int modifiers = stateMask & SWT.MODIFIER_MASK;
         8:         int character = keyCode;
         9:         return modifiers + toUpperCase(character);
        10:         ...
        11:         final char character = (char) keyCode;
        12:         return Character.isLetter(character) ? Character.toUpperCase(character)

      View Full Code Here

      valueOf

      public static Character valueOf(char c)
      Returns a Character instance representing the specified char value. If a new Character instance is not required, this method should generally be used in preference to the constructor Character(char), as this method is likely to yield significantly better space and time performance by caching frequently requested values.
      Parameters:
      c - a char value.
      Returns:
      a Character instance representing c.
      Since:
      1.5
      Usages and Demos :

      View More Examples of valueOf(char c)
         1:   {
         2:     return Character.valueOf((char) 0);
         3:   }
         4:         ...
         5:   {
         6:     char ch = ((Character)in).charValue();
         7: 
         8:         ...
         9: 
        10:     return new Character((char) i);
        11:   }

      View Full Code Here
         1:     private int guessLeft = 5;
         2:     public List<Character> charactersAvailable;
         3:         ...
         4:     public List<Character> charactersGuessed;
         5: 
         6:         ...
         7:     public Hangman(Vocab vocab) {
         8:         charactersAvailable = new ArrayList<Character>(Arrays.asList(
         9:             new Character[] {
        10:         ...
        11:                 Character.valueOf('A'), Character.valueOf('B'), Character.valueOf('C'),

      View Full Code Here
         1: 
         2: public final class Chars extends Primitives<Character> implements Serializable
         3: {
         4:         ...
         5:   
         6:   public static final Class TYPE  = Character.TYPE;
         7: 
         8:         ...
         9:   
        10:   public static final Class<Character> BOX_TYPE = Character.class;
        11:   
        12:         ...
        13:       if (b == null)
        14:         asciis[e] = b = Character.valueOf(e);

      View Full Code Here