97 int props = getPropertiesEx(ch);
98 return (props & $$maskOtherAlphabetic) != 0;
99 }
100
101 boolean isIdeographic(int ch) {
102 int props = getPropertiesEx(ch);
103 return (props & $$maskIdeographic) != 0;
104 }
105
106 boolean isJavaIdentifierStart(int ch) {
107 int props = getProperties(ch);
108 return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
109 }
110
111 boolean isJavaIdentifierPart(int ch) {
112 int props = getProperties(ch);
113 return ((props & $$nonzeroJavaPart) != 0);
114 }
115
116 boolean isUnicodeIdentifierStart(int ch) {
117 int props = getProperties(ch);
118 return ((props & $$maskIdentifierInfo) == $$valueUnicodeStart);
119 }
120
121 boolean isUnicodeIdentifierPart(int ch) {
122 int props = getProperties(ch);
123 return ((props & $$maskUnicodePart) != 0);
124 }
125
126 boolean isIdentifierIgnorable(int ch) {
127 int props = getProperties(ch);
128 return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
129 }
130
131 int toLowerCase(int ch) {
132 int mapChar = ch;
133 int val = getProperties(ch);
134
135 if ((val & $$maskLowerCase) != 0) {
136 int offset = val << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
137 mapChar = ch + offset;
138 }
139 return mapChar;
140 }
141
142 int toUpperCase(int ch) {
143 int mapChar = ch;
|
97 int props = getPropertiesEx(ch);
98 return (props & $$maskOtherAlphabetic) != 0;
99 }
100
101 boolean isIdeographic(int ch) {
102 int props = getPropertiesEx(ch);
103 return (props & $$maskIdeographic) != 0;
104 }
105
106 boolean isJavaIdentifierStart(int ch) {
107 int props = getProperties(ch);
108 return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
109 }
110
111 boolean isJavaIdentifierPart(int ch) {
112 int props = getProperties(ch);
113 return ((props & $$nonzeroJavaPart) != 0);
114 }
115
116 boolean isUnicodeIdentifierStart(int ch) {
117 return (getPropertiesEx(ch) & $$maskIDStart) != 0 ||
118 ch == 0x2E2F;
119 }
120
121 boolean isUnicodeIdentifierPart(int ch) {
122 return (getPropertiesEx(ch) & $$maskIDContinue) != 0 ||
123 isIdentifierIgnorable(ch) ||
124 ch == 0x2E2F;
125 }
126
127 boolean isIdentifierIgnorable(int ch) {
128 int props = getProperties(ch);
129 return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
130 }
131
132 int toLowerCase(int ch) {
133 int mapChar = ch;
134 int val = getProperties(ch);
135
136 if ((val & $$maskLowerCase) != 0) {
137 int offset = val << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
138 mapChar = ch + offset;
139 }
140 return mapChar;
141 }
142
143 int toUpperCase(int ch) {
144 int mapChar = ch;
|