Character.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_CHARACTER_H
00002 #define JAVA_LANG_CHARACTER_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 
00008 namespace java {
00009   namespace lang {
00010 
00045     class JAVA_LANG_SPEC Character : virtual public Object, public Comparable {
00046 
00047     public:
00048 
00057       static const jint MIN_RADIX;
00058 
00067       static const jint MAX_RADIX;
00068 
00075       static const jchar MIN_VALUE;
00076 
00083       static const jchar MAX_VALUE;
00084 
00090       enum TYPE {
00091         UNASSIGNED,
00092         UPPERCASE_LETTER,  
00093         LOWERCASE_LETTER,
00094         TITLECASE_LETTER,
00095         MODIFIER_LETTER,
00096         OTHER_LETTER,
00097         NON_SPACING_MARK,
00098         ENCLOSING_MARK,
00099         COMBINING_SPACING_MARK,
00100         DECIMAL_DIGIT_NUMBER,
00101         LETTER_NUMBER,
00102         OTHER_NUMBER,
00103         SPACE_SEPARATOR,
00104         LINE_SEPARATOR,
00105         PARAGRAPH_SEPARATOR,
00106         CONTROL,
00107         FORMAT,
00108         UNKNOWN_USE,
00109         PRIVATE_USE,
00110         SURROGATE,
00111         DASH_PUNCTUATION,
00112         START_PUNCTUATION,
00113         END_PUNCTUATION,
00114         CONNECTOR_PUNCTUATION,
00115         OTHER_PUNCTUATION,
00116         MATH_SYMBOL,
00117         CURRENCY_SYMBOL,
00118         MODIFIER_SYMBOL,
00119         OTHER_SYMBOL,
00120       };
00121 
00131       class JAVA_LANG_SPEC Subset : virtual public Object {
00132 
00133       public:
00134 
00140         Subset(const String& name = nilString);
00141       
00145         String toString() const;
00146 
00147       private:
00148         String name;
00149         REGISTER_MEMBERS;
00150       };
00151 
00159       class JAVA_LANG_SPEC UnicodeBlock : public Subset {
00160 
00161       public:
00162 
00168         UnicodeBlock(const String& name = nilString);
00169 
00171         static const UnicodeBlock BASIC_LATIN;
00172         static const UnicodeBlock LATIN_1_SUPPLEMENT;
00173         static const UnicodeBlock LATIN_EXTENDED_A;
00174         static const UnicodeBlock LATIN_EXTENDED_B;
00175         static const UnicodeBlock IPA_EXTENSIONS;
00176         static const UnicodeBlock SPACING_MODIFIER_LETTERS;
00177         static const UnicodeBlock COMBINING_DIACRITICAL_MARKS;
00178         static const UnicodeBlock GREEK;
00179         static const UnicodeBlock CYRILLIC;
00180         static const UnicodeBlock ARMENIAN;
00181         static const UnicodeBlock HEBREW;
00182         static const UnicodeBlock ARABIC;
00183         static const UnicodeBlock DEVANAGARI;
00184         static const UnicodeBlock BENGALI;
00185         static const UnicodeBlock GURMUKHI;
00186         static const UnicodeBlock GUJARATI;
00187         static const UnicodeBlock ORIYA;
00188         static const UnicodeBlock TAMIL;
00189         static const UnicodeBlock TELUGU;
00190         static const UnicodeBlock KANNADA;
00191         static const UnicodeBlock MALAYALAM;
00192         static const UnicodeBlock THAI;
00193         static const UnicodeBlock LAO;
00194         static const UnicodeBlock TIBETAN;
00195         static const UnicodeBlock GEORGIAN;
00196         static const UnicodeBlock HANGUL_JAMO;
00197         static const UnicodeBlock LATIN_EXTENDED_ADDITIONAL;
00198         static const UnicodeBlock GREEK_EXTENDED;
00199         static const UnicodeBlock GENERAL_PUNCTUATION;
00200         static const UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS;
00201         static const UnicodeBlock CURRENCY_SYMBOLS;
00202         static const UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS;
00203         static const UnicodeBlock LETTERLIKE_SYMBOLS;
00204         static const UnicodeBlock NUMBER_FORMS;
00205         static const UnicodeBlock ARROWS;
00206         static const UnicodeBlock MATHEMATICAL_OPERATORS;
00207         static const UnicodeBlock MISCELLANEOUS_TECHNICAL;
00208         static const UnicodeBlock CONTROL_PICTURES;
00209         static const UnicodeBlock OPTICAL_CHARACTER_RECOGNITION;
00210         static const UnicodeBlock ENCLOSED_ALPHANUMERICS;
00211         static const UnicodeBlock BOX_DRAWING;
00212         static const UnicodeBlock BLOCK_ELEMENTS;
00213         static const UnicodeBlock GEOMETRIC_SHAPES;
00214         static const UnicodeBlock MISCELLANEOUS_SYMBOLS;
00215         static const UnicodeBlock DINGBATS;
00216         static const UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION;
00217         static const UnicodeBlock HIRAGANA;
00218         static const UnicodeBlock KATAKANA;
00219         static const UnicodeBlock BOPOMOFO;
00220         static const UnicodeBlock HANGUL_COMPATIBILITY_JAMO;
00221         static const UnicodeBlock KANBUN;
00222         static const UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS;
00223         static const UnicodeBlock CJK_COMPATIBILITY;
00224         static const UnicodeBlock CJK_UNIFIED_IDEOGRAPHS;
00225         static const UnicodeBlock HANGUL_SYLLABLES;
00226         static const UnicodeBlock SURROGATES_AREA;
00227         static const UnicodeBlock PRIVATE_USE_AREA;
00228         static const UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS;
00229         static const UnicodeBlock ALPHABETIC_PRESENTATION_FORMS;
00230         static const UnicodeBlock ARABIC_PRESENTATION_FORMS_A;
00231         static const UnicodeBlock COMBINING_HALF_MARKS;
00232         static const UnicodeBlock CJK_COMPATIBILITY_FORMS;
00233         static const UnicodeBlock SMALL_FORM_VARIANTS;
00234         static const UnicodeBlock ARABIC_PRESENTATION_FORMS_B;
00235         static const UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS;
00236         static const UnicodeBlock SPECIALS;
00237 
00249         static const UnicodeBlock& of(jchar c);
00250 
00251       private:
00252         REGISTER_MEMBERS;
00253       };
00254 
00261       Character(jchar _value = 0);
00262 
00263       operator jchar&();
00264 
00270       virtual jchar charValue() const;
00271 
00282       virtual jboolean equals(const Object& src) const;
00283 
00289       virtual jint hashCode() const;
00290 
00308       virtual jint compareTo(const Object& src) const;
00309 
00319       String toString() const;
00320 
00354       static jboolean isLowerCase(jchar ch);
00355 
00386       static jboolean isUpperCase(jchar ch);
00387 
00414       static jboolean isTitleCase(jchar ch);
00415 
00452       static jboolean isDigit(jchar ch);
00453 
00471       static jboolean isDefined(jchar ch);
00472 
00494       static jboolean isLetter(jchar ch);
00495 
00513       static jboolean isLetterOrDigit(jchar ch);
00514 
00531       static jboolean isJavaIdentifierStart(jchar ch);
00532 
00533 
00554       static jboolean isJavaIdentifierPart(jchar ch);
00555 
00566       static jboolean isUnicodeIdentifierStart(jchar ch);
00567 
00587       static jboolean isUnicodeIdentifierPart(jchar ch);
00588 
00609       static jboolean isIdentifierIgnorable(jchar ch);
00610 
00630       static jchar toLowerCase(jchar ch);
00631 
00651       static jchar toUpperCase(jchar ch);
00652 
00674       static jchar toTitleCase(jchar ch);
00675 
00708       static jint digit(jchar ch, jint radix = 10);
00709 
00727       static jint getNumericValue(jchar ch);
00728 
00740       static jboolean isSpaceChar(jchar ch);
00741 
00766       static jboolean isWhitespace(jchar ch);
00767 
00779       static jboolean isISOControl(jchar ch);
00780 
00787       static jint getType(jchar ch);
00788 
00810       static jchar forDigit(jint digit, jint radix = 10);
00811 
00812     private:
00813 
00817       jchar value;
00818 
00819       REGISTER_MEMBERS;
00820 
00821     };
00822 
00823   } // namespace lang
00824 } // namespace java
00825 
00826 #endif /* JAVA_LANG_CHARACTER_H */

Generated on Fri May 16 11:54:42 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3