Character.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_lang_Character__
  3. #define __java_lang_Character__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. class java::lang::Character : public ::java::lang::Object
  8. {
  9. static jchar readChar(jchar);
  10. static jchar readCodePoint(jint);
  11. public:
  12. Character(jchar);
  13. jchar charValue();
  14. jint hashCode();
  15. jboolean equals(::java::lang::Object *);
  16. ::java::lang::String * toString();
  17. static ::java::lang::String * toString(jchar);
  18. static jboolean isLowerCase(jchar);
  19. static jboolean isLowerCase(jint);
  20. static jboolean isUpperCase(jchar);
  21. static jboolean isUpperCase(jint);
  22. static jboolean isTitleCase(jchar);
  23. static jboolean isTitleCase(jint);
  24. static jboolean isDigit(jchar);
  25. static jboolean isDigit(jint);
  26. static jboolean isDefined(jchar);
  27. static jboolean isDefined(jint);
  28. static jboolean isLetter(jchar);
  29. static jboolean isLetter(jint);
  30. static jint offsetByCodePoints(::java::lang::CharSequence *, jint, jint);
  31. static jint offsetByCodePoints(JArray< jchar > *, jint, jint, jint, jint);
  32. static jint codePointCount(::java::lang::CharSequence *, jint, jint);
  33. static jint codePointCount(JArray< jchar > *, jint, jint);
  34. static jboolean isLetterOrDigit(jchar);
  35. static jboolean isLetterOrDigit(jint);
  36. static jboolean isJavaLetter(jchar);
  37. static jboolean isJavaIdentifierStart(jint);
  38. static jboolean isJavaLetterOrDigit(jchar);
  39. static jboolean isJavaIdentifierStart(jchar);
  40. static jboolean isJavaIdentifierPart(jchar);
  41. static jboolean isJavaIdentifierPart(jint);
  42. static jboolean isUnicodeIdentifierStart(jchar);
  43. static jboolean isUnicodeIdentifierStart(jint);
  44. static jboolean isUnicodeIdentifierPart(jchar);
  45. static jboolean isUnicodeIdentifierPart(jint);
  46. static jboolean isIdentifierIgnorable(jchar);
  47. static jboolean isIdentifierIgnorable(jint);
  48. static jchar toLowerCase(jchar);
  49. static jint toLowerCase(jint);
  50. static jchar toUpperCase(jchar);
  51. static jint toUpperCase(jint);
  52. static jchar toTitleCase(jchar);
  53. static jint toTitleCase(jint);
  54. static jint digit(jchar, jint);
  55. static jint digit(jint, jint);
  56. static jint getNumericValue(jchar);
  57. static jint getNumericValue(jint);
  58. static jboolean isSpace(jchar);
  59. static jboolean isSpaceChar(jchar);
  60. static jboolean isSpaceChar(jint);
  61. static jboolean isWhitespace(jchar);
  62. static jboolean isWhitespace(jint);
  63. static jboolean isISOControl(jchar);
  64. static jboolean isISOControl(jint);
  65. static jint getType(jchar);
  66. static jint getType(jint);
  67. static jchar forDigit(jint, jint);
  68. static jbyte getDirectionality(jchar);
  69. static jbyte getDirectionality(jint);
  70. static jboolean isMirrored(jchar);
  71. static jboolean isMirrored(jint);
  72. jint Character$compareTo(::java::lang::Character *);
  73. static ::java::lang::Character * valueOf(jchar);
  74. static jchar reverseBytes(jchar);
  75. static JArray< jchar > * toChars(jint);
  76. static jint toChars(jint, JArray< jchar > *, jint);
  77. static jint charCount(jint);
  78. static jboolean isSupplementaryCodePoint(jint);
  79. static jboolean isValidCodePoint(jint);
  80. static jboolean isHighSurrogate(jchar);
  81. static jboolean isLowSurrogate(jchar);
  82. static jboolean isSurrogatePair(jchar, jchar);
  83. static jint toCodePoint(jchar, jchar);
  84. static jint codePointAt(::java::lang::CharSequence *, jint);
  85. static jint codePointAt(JArray< jchar > *, jint);
  86. static jint codePointAt(JArray< jchar > *, jint, jint);
  87. static jint codePointBefore(JArray< jchar > *, jint);
  88. static jint codePointBefore(JArray< jchar > *, jint, jint);
  89. static jint codePointBefore(::java::lang::CharSequence *, jint);
  90. jint compareTo(::java::lang::Object *);
  91. private:
  92. jchar __attribute__((aligned(__alignof__( ::java::lang::Object)))) value;
  93. static const jlong serialVersionUID = 3786198910865385080LL;
  94. public:
  95. static const jint MIN_RADIX = 2;
  96. static const jint MAX_RADIX = 36;
  97. static const jchar MIN_VALUE = 0;
  98. static const jchar MAX_VALUE = 65535;
  99. static const jint MIN_CODE_POINT = 0;
  100. static const jint MAX_CODE_POINT = 1114111;
  101. static const jchar MIN_HIGH_SURROGATE = 55296;
  102. static const jchar MAX_HIGH_SURROGATE = 56319;
  103. static const jchar MIN_LOW_SURROGATE = 56320;
  104. static const jchar MAX_LOW_SURROGATE = 57343;
  105. static const jchar MIN_SURROGATE = 55296;
  106. static const jchar MAX_SURROGATE = 57343;
  107. static const jint MIN_SUPPLEMENTARY_CODE_POINT = 65536;
  108. static ::java::lang::Class * TYPE;
  109. static const jint SIZE = 16;
  110. private:
  111. static const jint MAX_CACHE = 127;
  112. static JArray< ::java::lang::Character * > * charCache;
  113. public:
  114. static const jbyte UPPERCASE_LETTER = 1;
  115. static const jbyte LOWERCASE_LETTER = 2;
  116. static const jbyte TITLECASE_LETTER = 3;
  117. static const jbyte NON_SPACING_MARK = 6;
  118. static const jbyte COMBINING_SPACING_MARK = 8;
  119. static const jbyte ENCLOSING_MARK = 7;
  120. static const jbyte DECIMAL_DIGIT_NUMBER = 9;
  121. static const jbyte LETTER_NUMBER = 10;
  122. static const jbyte OTHER_NUMBER = 11;
  123. static const jbyte SPACE_SEPARATOR = 12;
  124. static const jbyte LINE_SEPARATOR = 13;
  125. static const jbyte PARAGRAPH_SEPARATOR = 14;
  126. static const jbyte CONTROL = 15;
  127. static const jbyte FORMAT = 16;
  128. static const jbyte SURROGATE = 19;
  129. static const jbyte PRIVATE_USE = 18;
  130. static const jbyte UNASSIGNED = 0;
  131. static const jbyte MODIFIER_LETTER = 4;
  132. static const jbyte OTHER_LETTER = 5;
  133. static const jbyte CONNECTOR_PUNCTUATION = 23;
  134. static const jbyte DASH_PUNCTUATION = 20;
  135. static const jbyte START_PUNCTUATION = 21;
  136. static const jbyte END_PUNCTUATION = 22;
  137. static const jbyte INITIAL_QUOTE_PUNCTUATION = 29;
  138. static const jbyte FINAL_QUOTE_PUNCTUATION = 30;
  139. static const jbyte OTHER_PUNCTUATION = 24;
  140. static const jbyte MATH_SYMBOL = 25;
  141. static const jbyte CURRENCY_SYMBOL = 26;
  142. static const jbyte MODIFIER_SYMBOL = 27;
  143. static const jbyte OTHER_SYMBOL = 28;
  144. static const jbyte DIRECTIONALITY_UNDEFINED = -1;
  145. static const jbyte DIRECTIONALITY_LEFT_TO_RIGHT = 0;
  146. static const jbyte DIRECTIONALITY_RIGHT_TO_LEFT = 1;
  147. static const jbyte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = 2;
  148. static const jbyte DIRECTIONALITY_EUROPEAN_NUMBER = 3;
  149. static const jbyte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = 4;
  150. static const jbyte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = 5;
  151. static const jbyte DIRECTIONALITY_ARABIC_NUMBER = 6;
  152. static const jbyte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = 7;
  153. static const jbyte DIRECTIONALITY_NONSPACING_MARK = 8;
  154. static const jbyte DIRECTIONALITY_BOUNDARY_NEUTRAL = 9;
  155. static const jbyte DIRECTIONALITY_PARAGRAPH_SEPARATOR = 10;
  156. static const jbyte DIRECTIONALITY_SEGMENT_SEPARATOR = 11;
  157. static const jbyte DIRECTIONALITY_WHITESPACE = 12;
  158. static const jbyte DIRECTIONALITY_OTHER_NEUTRALS = 13;
  159. static const jbyte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = 14;
  160. static const jbyte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = 15;
  161. static const jbyte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = 16;
  162. static const jbyte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = 17;
  163. static const jbyte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = 18;
  164. private:
  165. static const jint TYPE_MASK = 31;
  166. static const jint NO_BREAK_MASK = 32;
  167. static const jint MIRROR_MASK = 64;
  168. public:
  169. static ::java::lang::Class class$;
  170. };
  171. #endif // __java_lang_Character__