1. /* @(#)CharacterDataPrivateUse.java.template 1.2 03/07/26
  2. *
  3. * Copyright 1994-2002 Sun Microsystems, Inc. All Rights Reserved.
  4. *
  5. * This software is the proprietary information of Sun Microsystems, Inc.
  6. * Use is subject to license terms.
  7. *
  8. */
  9. package java.lang;
  10. /** The CharacterData class encapsulates the large tables found in
  11. Java.lang.Character. */
  12. class CharacterDataPrivateUse {
  13. static int getProperties(int ch) {
  14. return 0;
  15. }
  16. static int getType(int ch) {
  17. int offset = ch & 0xFFFF;
  18. if (offset == 0xFFFE || offset == 0xFFFF) {
  19. return Character.UNASSIGNED;
  20. } else {
  21. return Character.PRIVATE_USE;
  22. }
  23. }
  24. static boolean isLowerCase(int ch) {
  25. return false;
  26. }
  27. static boolean isUpperCase(int ch) {
  28. return false;
  29. }
  30. static boolean isTitleCase(int ch) {
  31. return false;
  32. }
  33. static boolean isDigit(int ch) {
  34. return false;
  35. }
  36. static boolean isDefined(int ch) {
  37. int offset = ch & 0xFFFF;
  38. if (offset == 0xFFFE || offset == 0xFFFF) {
  39. return false;
  40. } else {
  41. return true;
  42. }
  43. }
  44. static boolean isLetter(int ch) {
  45. return false;
  46. }
  47. static boolean isLetterOrDigit(int ch) {
  48. return false;
  49. }
  50. static boolean isSpaceChar(int ch) {
  51. return false;
  52. }
  53. static boolean isJavaIdentifierStart(int ch) {
  54. return false;
  55. }
  56. static boolean isJavaIdentifierPart(int ch) {
  57. return false;
  58. }
  59. static boolean isUnicodeIdentifierStart(int ch) {
  60. return false;
  61. }
  62. static boolean isUnicodeIdentifierPart(int ch) {
  63. return false;
  64. }
  65. static boolean isIdentifierIgnorable(int ch) {
  66. return false;
  67. }
  68. static int toLowerCase(int ch) {
  69. return ch;
  70. }
  71. static int toUpperCase(int ch) {
  72. return ch;
  73. }
  74. static int toTitleCase(int ch) {
  75. return ch;
  76. }
  77. static int digit(int ch, int radix) {
  78. return -1;
  79. }
  80. static int getNumericValue(int ch) {
  81. return -1;
  82. }
  83. static boolean isWhitespace(int ch) {
  84. return false;
  85. }
  86. static byte getDirectionality(int ch) {
  87. int offset = ch & 0xFFFF;
  88. if (offset == 0xFFFE || offset == 0xFFFF) {
  89. return Character.DIRECTIONALITY_UNDEFINED;
  90. } else {
  91. return Character.DIRECTIONALITY_LEFT_TO_RIGHT;
  92. }
  93. }
  94. static boolean isMirrored(int ch) {
  95. return false;
  96. }
  97. // may need to implement for JSR 204
  98. // static int toUpperCaseEx(int ch);
  99. // static char[] toUpperCaseCharArray(int ch);
  100. }