author | sjohanss |
Wed, 27 Nov 2019 12:18:40 +0100 | |
changeset 59293 | 5af9fa90cd7b |
parent 58028 | 7ac4273bb49b |
permissions | -rw-r--r-- |
2 | 1 |
/* |
55013 | 2 |
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package java.lang; |
|
27 |
||
28 |
/** The CharacterData class encapsulates the large tables once found in |
|
29 |
* java.lang.Character. |
|
30 |
*/ |
|
31 |
||
32 |
class CharacterData01 extends CharacterData { |
|
33 |
/* The character properties are currently encoded into 32 bits in the following manner: |
|
34 |
1 bit mirrored property |
|
35 |
4 bits directionality property |
|
36 |
9 bits signed offset used for converting case |
|
37 |
1 bit if 1, adding the signed offset converts the character to lowercase |
|
38 |
1 bit if 1, subtracting the signed offset converts the character to uppercase |
|
39 |
1 bit if 1, this character has a titlecase equivalent (possibly itself) |
|
40 |
3 bits 0 may not be part of an identifier |
|
41 |
1 ignorable control; may continue a Unicode identifier or Java identifier |
|
42 |
2 may continue a Java identifier but not a Unicode identifier (unused) |
|
43 |
3 may continue a Unicode identifier or Java identifier |
|
44 |
4 is a Java whitespace character |
|
45 |
5 may start or continue a Java identifier; |
|
46 |
may continue but not start a Unicode identifier (underscores) |
|
47 |
6 may start or continue a Java identifier but not a Unicode identifier ($) |
|
48 |
7 may start or continue a Unicode identifier or Java identifier |
|
49 |
Thus: |
|
50 |
5, 6, 7 may start a Java identifier |
|
51 |
1, 2, 3, 5, 6, 7 may continue a Java identifier |
|
52 |
7 may start a Unicode identifier |
|
53 |
1, 3, 5, 7 may continue a Unicode identifier |
|
54 |
1 is ignorable within an identifier |
|
55 |
4 is Java whitespace |
|
56 |
2 bits 0 this character has no numeric property |
|
57 |
1 adding the digit offset to the character code and then |
|
58 |
masking with 0x1F will produce the desired numeric value |
|
59 |
2 this character has a "strange" numeric value |
|
60 |
3 a Java supradecimal digit: adding the digit offset to the |
|
61 |
character code, then masking with 0x1F, then adding 10 |
|
62 |
will produce the desired numeric value |
|
63 |
5 bits digit offset |
|
64 |
5 bits character type |
|
65 |
||
66 |
The encoding of character properties is subject to change at any time. |
|
67 |
*/ |
|
68 |
||
69 |
int getProperties(int ch) { |
|
70 |
char offset = (char)ch; |
|
71 |
int props = $$Lookup(offset); |
|
72 |
return props; |
|
73 |
} |
|
74 |
||
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
75 |
int getPropertiesEx(int ch) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
76 |
char offset = (char)ch; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
77 |
int props = $$LookupEx(offset); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
78 |
return props; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
79 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
80 |
|
2 | 81 |
int getType(int ch) { |
82 |
int props = getProperties(ch); |
|
83 |
return (props & $$maskType); |
|
84 |
} |
|
85 |
||
9535
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
86 |
boolean isOtherLowercase(int ch) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
87 |
int props = getPropertiesEx(ch); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
88 |
return (props & $$maskOtherLowercase) != 0; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
89 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
90 |
|
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
91 |
boolean isOtherUppercase(int ch) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
92 |
int props = getPropertiesEx(ch); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
93 |
return (props & $$maskOtherUppercase) != 0; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
94 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
95 |
|
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
96 |
boolean isOtherAlphabetic(int ch) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
97 |
int props = getPropertiesEx(ch); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
98 |
return (props & $$maskOtherAlphabetic) != 0; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
99 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
100 |
|
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
101 |
boolean isIdeographic(int ch) { |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
102 |
int props = getPropertiesEx(ch); |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
103 |
return (props & $$maskIdeographic) != 0; |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
104 |
} |
d930011fd275
7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents:
7247
diff
changeset
|
105 |
|
2 | 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) { |
|
58028
7ac4273bb49b
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents:
55013
diff
changeset
|
117 |
return (getPropertiesEx(ch) & $$maskIDStart) != 0 || |
7ac4273bb49b
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents:
55013
diff
changeset
|
118 |
ch == 0x2E2F; |
2 | 119 |
} |
120 |
||
121 |
boolean isUnicodeIdentifierPart(int ch) { |
|
58028
7ac4273bb49b
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents:
55013
diff
changeset
|
122 |
return (getPropertiesEx(ch) & $$maskIDContinue) != 0 || |
7ac4273bb49b
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents:
55013
diff
changeset
|
123 |
isIdentifierIgnorable(ch) || |
7ac4273bb49b
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents:
55013
diff
changeset
|
124 |
ch == 0x2E2F; |
2 | 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; |
|
145 |
int val = getProperties(ch); |
|
146 |
||
147 |
if ((val & $$maskUpperCase) != 0) { |
|
148 |
int offset = val << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset); |
|
149 |
mapChar = ch - offset; |
|
150 |
} |
|
151 |
return mapChar; |
|
152 |
} |
|
153 |
||
154 |
int toTitleCase(int ch) { |
|
155 |
int mapChar = ch; |
|
156 |
int val = getProperties(ch); |
|
157 |
||
158 |
if ((val & $$maskTitleCase) != 0) { |
|
159 |
// There is a titlecase equivalent. Perform further checks: |
|
160 |
if ((val & $$maskUpperCase) == 0) { |
|
161 |
// The character does not have an uppercase equivalent, so it must |
|
162 |
// already be uppercase; so add 1 to get the titlecase form. |
|
163 |
mapChar = ch + 1; |
|
164 |
} |
|
165 |
else if ((val & $$maskLowerCase) == 0) { |
|
166 |
// The character does not have a lowercase equivalent, so it must |
|
167 |
// already be lowercase; so subtract 1 to get the titlecase form. |
|
168 |
mapChar = ch - 1; |
|
169 |
} |
|
170 |
// else { |
|
171 |
// The character has both an uppercase equivalent and a lowercase |
|
172 |
// equivalent, so it must itself be a titlecase form; return it. |
|
173 |
// return ch; |
|
174 |
//} |
|
175 |
} |
|
176 |
else if ((val & $$maskUpperCase) != 0) { |
|
177 |
// This character has no titlecase equivalent but it does have an |
|
178 |
// uppercase equivalent, so use that (subtract the signed case offset). |
|
179 |
mapChar = toUpperCase(ch); |
|
180 |
} |
|
181 |
return mapChar; |
|
182 |
} |
|
183 |
||
184 |
int digit(int ch, int radix) { |
|
185 |
int value = -1; |
|
186 |
if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) { |
|
187 |
int val = getProperties(ch); |
|
188 |
int kind = val & $$maskType; |
|
189 |
if (kind == Character.DECIMAL_DIGIT_NUMBER) { |
|
190 |
value = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit; |
|
191 |
} |
|
192 |
else if ((val & $$maskNumericType) == $$valueJavaSupradecimal) { |
|
193 |
// Java supradecimal digit |
|
194 |
value = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10; |
|
195 |
} |
|
196 |
} |
|
197 |
return (value < radix) ? value : -1; |
|
198 |
} |
|
199 |
||
200 |
int getNumericValue(int ch) { |
|
201 |
int val = getProperties(ch); |
|
202 |
int retval = -1; |
|
203 |
||
204 |
switch (val & $$maskNumericType) { |
|
205 |
default: // cannot occur |
|
206 |
case ($$valueNotNumeric): // not numeric |
|
207 |
retval = -1; |
|
208 |
break; |
|
209 |
case ($$valueDigit): // simple numeric |
|
210 |
retval = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit; |
|
211 |
break; |
|
212 |
case ($$valueStrangeNumeric) : // "strange" numeric |
|
213 |
switch(ch) { |
|
214 |
case 0x10113: retval = 40; break; // AEGEAN NUMBER FORTY |
|
215 |
case 0x10114: retval = 50; break; // AEGEAN NUMBER FIFTY |
|
216 |
case 0x10115: retval = 60; break; // AEGEAN NUMBER SIXTY |
|
217 |
case 0x10116: retval = 70; break; // AEGEAN NUMBER SEVENTY |
|
218 |
case 0x10117: retval = 80; break; // AEGEAN NUMBER EIGHTY |
|
219 |
case 0x10118: retval = 90; break; // AEGEAN NUMBER NINETY |
|
220 |
case 0x10119: retval = 100; break; // AEGEAN NUMBER ONE HUNDRED |
|
221 |
case 0x1011A: retval = 200; break; // AEGEAN NUMBER TWO HUNDRED |
|
222 |
case 0x1011B: retval = 300; break; // AEGEAN NUMBER THREE HUNDRED |
|
223 |
case 0x1011C: retval = 400; break; // AEGEAN NUMBER FOUR HUNDRED |
|
224 |
case 0x1011D: retval = 500; break; // AEGEAN NUMBER FIVE HUNDRED |
|
225 |
case 0x1011E: retval = 600; break; // AEGEAN NUMBER SIX HUNDRED |
|
226 |
case 0x1011F: retval = 700; break; // AEGEAN NUMBER SEVEN HUNDRED |
|
227 |
case 0x10120: retval = 800; break; // AEGEAN NUMBER EIGHT HUNDRED |
|
228 |
case 0x10121: retval = 900; break; // AEGEAN NUMBER NINE HUNDRED |
|
229 |
case 0x10122: retval = 1000; break; // AEGEAN NUMBER ONE THOUSAND |
|
230 |
case 0x10123: retval = 2000; break; // AEGEAN NUMBER TWO THOUSAND |
|
231 |
case 0x10124: retval = 3000; break; // AEGEAN NUMBER THREE THOUSAND |
|
232 |
case 0x10125: retval = 4000; break; // AEGEAN NUMBER FOUR THOUSAND |
|
233 |
case 0x10126: retval = 5000; break; // AEGEAN NUMBER FIVE THOUSAND |
|
234 |
case 0x10127: retval = 6000; break; // AEGEAN NUMBER SIX THOUSAND |
|
235 |
case 0x10128: retval = 7000; break; // AEGEAN NUMBER SEVEN THOUSAND |
|
236 |
case 0x10129: retval = 8000; break; // AEGEAN NUMBER EIGHT THOUSAND |
|
237 |
case 0x1012A: retval = 9000; break; // AEGEAN NUMBER NINE THOUSAND |
|
238 |
case 0x1012B: retval = 10000; break; // AEGEAN NUMBER TEN THOUSAND |
|
239 |
case 0x1012C: retval = 20000; break; // AEGEAN NUMBER TWENTY THOUSAND |
|
240 |
case 0x1012D: retval = 30000; break; // AEGEAN NUMBER THIRTY THOUSAND |
|
241 |
case 0x1012E: retval = 40000; break; // AEGEAN NUMBER FORTY THOUSAND |
|
242 |
case 0x1012F: retval = 50000; break; // AEGEAN NUMBER FIFTY THOUSAND |
|
243 |
case 0x10130: retval = 60000; break; // AEGEAN NUMBER SIXTY THOUSAND |
|
244 |
case 0x10131: retval = 70000; break; // AEGEAN NUMBER SEVENTY THOUSAND |
|
245 |
case 0x10132: retval = 80000; break; // AEGEAN NUMBER EIGHTY THOUSAND |
|
246 |
case 0x10133: retval = 90000; break; // AEGEAN NUMBER NINETY THOUSAND |
|
33242 | 247 |
case 0x10144: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY |
248 |
case 0x10145: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED |
|
249 |
case 0x10146: retval = 5000; break; // GREEK ACROPHONIC ATTIC FIVE THOUSAND |
|
250 |
case 0x10147: retval = 50000; break; // GREEK ACROPHONIC ATTIC FIFTY THOUSAND |
|
251 |
case 0x1014A: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY TALENTS |
|
252 |
case 0x1014B: retval = 100; break; // GREEK ACROPHONIC ATTIC ONE HUNDRED TALENTS |
|
253 |
case 0x1014C: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED TALENTS |
|
254 |
case 0x1014D: retval = 1000; break; // GREEK ACROPHONIC ATTIC ONE THOUSAND TALENTS |
|
255 |
case 0x1014E: retval = 5000; break; // GREEK ACROPHONIC ATTIC FIVE THOUSAND TALENTS |
|
256 |
case 0x10151: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY STATERS |
|
257 |
case 0x10152: retval = 100; break; // GREEK ACROPHONIC ATTIC ONE HUNDRED STATERS |
|
258 |
case 0x10153: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED STATERS |
|
259 |
case 0x10154: retval = 1000; break; // GREEK ACROPHONIC ATTIC ONE THOUSAND STATERS |
|
260 |
case 0x10155: retval = 10000; break; // GREEK ACROPHONIC ATTIC TEN THOUSAND STATERS |
|
261 |
case 0x10156: retval = 50000; break; // GREEK ACROPHONIC ATTIC FIFTY THOUSAND STATERS |
|
262 |
case 0x10166: retval = 50; break; // GREEK ACROPHONIC TROEZENIAN FIFTY |
|
263 |
case 0x10167: retval = 50; break; // GREEK ACROPHONIC TROEZENIAN FIFTY ALTERNATE FORM |
|
264 |
case 0x10168: retval = 50; break; // GREEK ACROPHONIC HERMIONIAN FIFTY |
|
265 |
case 0x10169: retval = 50; break; // GREEK ACROPHONIC THESPIAN FIFTY |
|
266 |
case 0x1016A: retval = 100; break; // GREEK ACROPHONIC THESPIAN ONE HUNDRED |
|
267 |
case 0x1016B: retval = 300; break; // GREEK ACROPHONIC THESPIAN THREE HUNDRED |
|
268 |
case 0x1016C: retval = 500; break; // GREEK ACROPHONIC EPIDAUREAN FIVE HUNDRED |
|
269 |
case 0x1016D: retval = 500; break; // GREEK ACROPHONIC TROEZENIAN FIVE HUNDRED |
|
270 |
case 0x1016E: retval = 500; break; // GREEK ACROPHONIC THESPIAN FIVE HUNDRED |
|
271 |
case 0x1016F: retval = 500; break; // GREEK ACROPHONIC CARYSTIAN FIVE HUNDRED |
|
272 |
case 0x10170: retval = 500; break; // GREEK ACROPHONIC NAXIAN FIVE HUNDRED |
|
273 |
case 0x10171: retval = 1000; break; // GREEK ACROPHONIC THESPIAN ONE THOUSAND |
|
274 |
case 0x10172: retval = 5000; break; // GREEK ACROPHONIC THESPIAN FIVE THOUSAND |
|
275 |
case 0x10174: retval = 50; break; // GREEK ACROPHONIC STRATIAN FIFTY MNAS |
|
31680 | 276 |
case 0x102ED: retval = 40; break; // COPTIC EPACT NUMBER FORTY |
277 |
case 0x102EE: retval = 50; break; // COPTIC EPACT NUMBER FIFTY |
|
278 |
case 0x102EF: retval = 60; break; // COPTIC EPACT NUMBER SIXTY |
|
279 |
case 0x102F0: retval = 70; break; // COPTIC EPACT NUMBER SEVENTY |
|
280 |
case 0x102F1: retval = 80; break; // COPTIC EPACT NUMBER EIGHTY |
|
281 |
case 0x102F2: retval = 90; break; // COPTIC EPACT NUMBER NINETY |
|
282 |
case 0x102F3: retval = 100; break; // COPTIC EPACT NUMBER ONE HUNDRED |
|
283 |
case 0x102F4: retval = 200; break; // COPTIC EPACT NUMBER TWO HUNDRED |
|
284 |
case 0x102F5: retval = 300; break; // COPTIC EPACT NUMBER THREE HUNDRED |
|
285 |
case 0x102F6: retval = 400; break; // COPTIC EPACT NUMBER FOUR HUNDRED |
|
286 |
case 0x102F7: retval = 500; break; // COPTIC EPACT NUMBER FIVE HUNDRED |
|
287 |
case 0x102F8: retval = 600; break; // COPTIC EPACT NUMBER SIX HUNDRED |
|
288 |
case 0x102F9: retval = 700; break; // COPTIC EPACT NUMBER SEVEN HUNDRED |
|
289 |
case 0x102FA: retval = 800; break; // COPTIC EPACT NUMBER EIGHT HUNDRED |
|
290 |
case 0x102FB: retval = 900; break; // COPTIC EPACT NUMBER NINE HUNDRED |
|
33242 | 291 |
case 0x10323: retval = 50; break; // OLD ITALIC NUMERAL FIFTY |
31680 | 292 |
case 0x10341: retval = 90; break; // GOTHIC LETTER NINETY |
293 |
case 0x1034A: retval = 900; break; // GOTHIC LETTER NINE HUNDRED |
|
294 |
case 0x103D5: retval = 100; break; // OLD PERSIAN NUMBER HUNDRED |
|
295 |
case 0x1085D: retval = 100; break; // IMPERIAL ARAMAIC NUMBER ONE HUNDRED |
|
296 |
case 0x1085E: retval = 1000; break; // IMPERIAL ARAMAIC NUMBER ONE THOUSAND |
|
297 |
case 0x1085F: retval = 10000; break; // IMPERIAL ARAMAIC NUMBER TEN THOUSAND |
|
298 |
case 0x108AF: retval = 100; break; // NABATAEAN NUMBER ONE HUNDRED |
|
33242 | 299 |
case 0x108FF: retval = 100; break; // HATRAN NUMBER ONE HUNDRED |
31680 | 300 |
case 0x10919: retval = 100; break; // PHOENICIAN NUMBER ONE HUNDRED |
33242 | 301 |
case 0x109CC: retval = 40; break; // MEROITIC CURSIVE NUMBER FORTY |
302 |
case 0x109CD: retval = 50; break; // MEROITIC CURSIVE NUMBER FIFTY |
|
303 |
case 0x109CE: retval = 60; break; // MEROITIC CURSIVE NUMBER SIXTY |
|
304 |
case 0x109CF: retval = 70; break; // MEROITIC CURSIVE NUMBER SEVENTY |
|
305 |
case 0x109D2: retval = 100; break; // MEROITIC CURSIVE NUMBER ONE HUNDRED |
|
306 |
case 0x109D3: retval = 200; break; // MEROITIC CURSIVE NUMBER TWO HUNDRED |
|
307 |
case 0x109D4: retval = 300; break; // MEROITIC CURSIVE NUMBER THREE HUNDRED |
|
308 |
case 0x109D5: retval = 400; break; // MEROITIC CURSIVE NUMBER FOUR HUNDRED |
|
309 |
case 0x109D6: retval = 500; break; // MEROITIC CURSIVE NUMBER FIVE HUNDRED |
|
310 |
case 0x109D7: retval = 600; break; // MEROITIC CURSIVE NUMBER SIX HUNDRED |
|
311 |
case 0x109D8: retval = 700; break; // MEROITIC CURSIVE NUMBER SEVEN HUNDRED |
|
312 |
case 0x109D9: retval = 800; break; // MEROITIC CURSIVE NUMBER EIGHT HUNDRED |
|
313 |
case 0x109DA: retval = 900; break; // MEROITIC CURSIVE NUMBER NINE HUNDRED |
|
314 |
case 0x109DB: retval = 1000; break; // MEROITIC CURSIVE NUMBER ONE THOUSAND |
|
315 |
case 0x109DC: retval = 2000; break; // MEROITIC CURSIVE NUMBER TWO THOUSAND |
|
316 |
case 0x109DD: retval = 3000; break; // MEROITIC CURSIVE NUMBER THREE THOUSAND |
|
317 |
case 0x109DE: retval = 4000; break; // MEROITIC CURSIVE NUMBER FOUR THOUSAND |
|
318 |
case 0x109DF: retval = 5000; break; // MEROITIC CURSIVE NUMBER FIVE THOUSAND |
|
319 |
case 0x109E0: retval = 6000; break; // MEROITIC CURSIVE NUMBER SIX THOUSAND |
|
320 |
case 0x109E1: retval = 7000; break; // MEROITIC CURSIVE NUMBER SEVEN THOUSAND |
|
321 |
case 0x109E2: retval = 8000; break; // MEROITIC CURSIVE NUMBER EIGHT THOUSAND |
|
322 |
case 0x109E3: retval = 9000; break; // MEROITIC CURSIVE NUMBER NINE THOUSAND |
|
323 |
case 0x109E4: retval = 10000; break; // MEROITIC CURSIVE NUMBER TEN THOUSAND |
|
324 |
case 0x109E5: retval = 20000; break; // MEROITIC CURSIVE NUMBER TWENTY THOUSAND |
|
325 |
case 0x109E6: retval = 30000; break; // MEROITIC CURSIVE NUMBER THIRTY THOUSAND |
|
326 |
case 0x109E7: retval = 40000; break; // MEROITIC CURSIVE NUMBER FORTY THOUSAND |
|
327 |
case 0x109E8: retval = 50000; break; // MEROITIC CURSIVE NUMBER FIFTY THOUSAND |
|
328 |
case 0x109E9: retval = 60000; break; // MEROITIC CURSIVE NUMBER SIXTY THOUSAND |
|
329 |
case 0x109EA: retval = 70000; break; // MEROITIC CURSIVE NUMBER SEVENTY THOUSAND |
|
330 |
case 0x109EB: retval = 80000; break; // MEROITIC CURSIVE NUMBER EIGHTY THOUSAND |
|
331 |
case 0x109EC: retval = 90000; break; // MEROITIC CURSIVE NUMBER NINETY THOUSAND |
|
332 |
case 0x109ED: retval = 100000; break; // MEROITIC CURSIVE NUMBER ONE HUNDRED THOUSAND |
|
333 |
case 0x109EE: retval = 200000; break; // MEROITIC CURSIVE NUMBER TWO HUNDRED THOUSAND |
|
334 |
case 0x109EF: retval = 300000; break; // MEROITIC CURSIVE NUMBER THREE HUNDRED THOUSAND |
|
335 |
case 0x109F0: retval = 400000; break; // MEROITIC CURSIVE NUMBER FOUR HUNDRED THOUSAND |
|
336 |
case 0x109F1: retval = 500000; break; // MEROITIC CURSIVE NUMBER FIVE HUNDRED THOUSAND |
|
337 |
case 0x109F2: retval = 600000; break; // MEROITIC CURSIVE NUMBER SIX HUNDRED THOUSAND |
|
338 |
case 0x109F3: retval = 700000; break; // MEROITIC CURSIVE NUMBER SEVEN HUNDRED THOUSAND |
|
339 |
case 0x109F4: retval = 800000; break; // MEROITIC CURSIVE NUMBER EIGHT HUNDRED THOUSAND |
|
340 |
case 0x109F5: retval = 900000; break; // MEROITIC CURSIVE NUMBER NINE HUNDRED THOUSAND |
|
31680 | 341 |
case 0x10A46: retval = 100; break; // KHAROSHTHI NUMBER ONE HUNDRED |
342 |
case 0x10A47: retval = 1000; break; // KHAROSHTHI NUMBER ONE THOUSAND |
|
343 |
case 0x10A7E: retval = 50; break; // OLD SOUTH ARABIAN NUMBER FIFTY |
|
344 |
case 0x10AEF: retval = 100; break; // MANICHAEAN NUMBER ONE HUNDRED |
|
345 |
case 0x10B5E: retval = 100; break; // INSCRIPTIONAL PARTHIAN NUMBER ONE HUNDRED |
|
346 |
case 0x10B5F: retval = 1000; break; // INSCRIPTIONAL PARTHIAN NUMBER ONE THOUSAND |
|
347 |
case 0x10B7E: retval = 100; break; // INSCRIPTIONAL PAHLAVI NUMBER ONE HUNDRED |
|
348 |
case 0x10B7F: retval = 1000; break; // INSCRIPTIONAL PAHLAVI NUMBER ONE THOUSAND |
|
349 |
case 0x10BAF: retval = 100; break; // PSALTER PAHLAVI NUMBER ONE HUNDRED |
|
33242 | 350 |
case 0x10CFD: retval = 50; break; // OLD HUNGARIAN NUMBER FIFTY |
351 |
case 0x10CFE: retval = 100; break; // OLD HUNGARIAN NUMBER ONE HUNDRED |
|
352 |
case 0x10CFF: retval = 1000; break; // OLD HUNGARIAN NUMBER ONE THOUSAND |
|
31680 | 353 |
case 0x10E6C: retval = 40; break; // RUMI NUMBER FORTY |
354 |
case 0x10E6D: retval = 50; break; // RUMI NUMBER FIFTY |
|
355 |
case 0x10E6E: retval = 60; break; // RUMI NUMBER SIXTY |
|
356 |
case 0x10E6F: retval = 70; break; // RUMI NUMBER SEVENTY |
|
357 |
case 0x10E70: retval = 80; break; // RUMI NUMBER EIGHTY |
|
358 |
case 0x10E71: retval = 90; break; // RUMI NUMBER NINETY |
|
359 |
case 0x10E72: retval = 100; break; // RUMI NUMBER ONE HUNDRED |
|
360 |
case 0x10E73: retval = 200; break; // RUMI NUMBER TWO HUNDRED |
|
361 |
case 0x10E74: retval = 300; break; // RUMI NUMBER THREE HUNDRED |
|
362 |
case 0x10E75: retval = 400; break; // RUMI NUMBER FOUR HUNDRED |
|
363 |
case 0x10E76: retval = 500; break; // RUMI NUMBER FIVE HUNDRED |
|
364 |
case 0x10E77: retval = 600; break; // RUMI NUMBER SIX HUNDRED |
|
365 |
case 0x10E78: retval = 700; break; // RUMI NUMBER SEVEN HUNDRED |
|
366 |
case 0x10E79: retval = 800; break; // RUMI NUMBER EIGHT HUNDRED |
|
367 |
case 0x10E7A: retval = 900; break; // RUMI NUMBER NINE HUNDRED |
|
52633 | 368 |
case 0x10F25: retval = 100; break; // OLD SOGDIAN NUMBER ONE HUNDRED |
369 |
case 0x10F54: retval = 100; break; // SOGDIAN NUMBER ONE HUNDRED |
|
31680 | 370 |
case 0x1105E: retval = 40; break; // BRAHMI NUMBER FORTY |
371 |
case 0x1105F: retval = 50; break; // BRAHMI NUMBER FIFTY |
|
372 |
case 0x11060: retval = 60; break; // BRAHMI NUMBER SIXTY |
|
373 |
case 0x11061: retval = 70; break; // BRAHMI NUMBER SEVENTY |
|
374 |
case 0x11062: retval = 80; break; // BRAHMI NUMBER EIGHTY |
|
375 |
case 0x11063: retval = 90; break; // BRAHMI NUMBER NINETY |
|
376 |
case 0x11064: retval = 100; break; // BRAHMI NUMBER ONE HUNDRED |
|
377 |
case 0x11065: retval = 1000; break; // BRAHMI NUMBER ONE THOUSAND |
|
50045 | 378 |
case 0x11C66: retval = 40; break; // BHAIKSUKI NUMBER FORTY |
379 |
case 0x11C67: retval = 50; break; // BHAIKSUKI NUMBER FIFTY |
|
380 |
case 0x11C68: retval = 60; break; // BHAIKSUKI NUMBER SIXTY |
|
381 |
case 0x11C69: retval = 70; break; // BHAIKSUKI NUMBER SEVENTY |
|
382 |
case 0x11C6A: retval = 80; break; // BHAIKSUKI NUMBER EIGHTY |
|
383 |
case 0x11C6B: retval = 90; break; // BHAIKSUKI NUMBER NINETY |
|
384 |
case 0x11C6C: retval = 100; break; // BHAIKSUKI HUNDREDS UNIT MARK |
|
31680 | 385 |
case 0x111ED: retval = 40; break; // SINHALA ARCHAIC NUMBER FORTY |
386 |
case 0x111EE: retval = 50; break; // SINHALA ARCHAIC NUMBER FIFTY |
|
387 |
case 0x111EF: retval = 60; break; // SINHALA ARCHAIC NUMBER SIXTY |
|
388 |
case 0x111F0: retval = 70; break; // SINHALA ARCHAIC NUMBER SEVENTY |
|
389 |
case 0x111F1: retval = 80; break; // SINHALA ARCHAIC NUMBER EIGHTY |
|
390 |
case 0x111F2: retval = 90; break; // SINHALA ARCHAIC NUMBER NINETY |
|
391 |
case 0x111F3: retval = 100; break; // SINHALA ARCHAIC NUMBER ONE HUNDRED |
|
392 |
case 0x111F4: retval = 1000; break; // SINHALA ARCHAIC NUMBER ONE THOUSAND |
|
393 |
case 0x118ED: retval = 40; break; // WARANG CITI NUMBER FORTY |
|
394 |
case 0x118EE: retval = 50; break; // WARANG CITI NUMBER FIFTY |
|
395 |
case 0x118EF: retval = 60; break; // WARANG CITI NUMBER SIXTY |
|
396 |
case 0x118F0: retval = 70; break; // WARANG CITI NUMBER SEVENTY |
|
397 |
case 0x118F1: retval = 80; break; // WARANG CITI NUMBER EIGHTY |
|
398 |
case 0x118F2: retval = 90; break; // WARANG CITI NUMBER NINETY |
|
399 |
case 0x12432: retval = 216000; break; // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS DISH |
|
400 |
case 0x12433: retval = 432000; break; // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS MIN |
|
401 |
case 0x12467: retval = 40; break; // CUNEIFORM NUMERIC SIGN ELAMITE FORTY |
|
402 |
case 0x12468: retval = 50; break; // CUNEIFORM NUMERIC SIGN ELAMITE FIFTY |
|
403 |
case 0x16B5C: retval = 100; break; // PAHAWH HMONG NUMBER HUNDREDS |
|
404 |
case 0x16B5D: retval = 10000; break; // PAHAWH HMONG NUMBER TEN THOUSANDS |
|
405 |
case 0x16B5E: retval = 1000000; break; // PAHAWH HMONG NUMBER MILLIONS |
|
406 |
case 0x16B5F: retval = 100000000; break;// PAHAWH HMONG NUMBER HUNDRED MILLIONS |
|
407 |
case 0x1D36C: retval = 40; break; // COUNTING ROD TENS DIGIT FOUR |
|
408 |
case 0x1D36D: retval = 50; break; // COUNTING ROD TENS DIGIT FIVE |
|
409 |
case 0x1D36E: retval = 60; break; // COUNTING ROD TENS DIGIT SIX |
|
410 |
case 0x1D36F: retval = 70; break; // COUNTING ROD TENS DIGIT SEVEN |
|
411 |
case 0x1D370: retval = 80; break; // COUNTING ROD TENS DIGIT EIGHT |
|
412 |
case 0x1D371: retval = 90; break; // COUNTING ROD TENS DIGIT NINE |
|
52633 | 413 |
case 0x1EC7D: retval = 40; break; // INDIC SIYAQ NUMBER FORTY |
414 |
case 0x1EC7E: retval = 50; break; // INDIC SIYAQ NUMBER FIFTY |
|
415 |
case 0x1EC7F: retval = 60; break; // INDIC SIYAQ NUMBER SIXTY |
|
416 |
case 0X1EC80: retval = 70; break; // INDIC SIYAQ NUMBER SEVENTY |
|
417 |
case 0X1EC81: retval = 80; break; // INDIC SIYAQ NUMBER EIGHTY |
|
418 |
case 0X1EC82: retval = 90; break; // INDIC SIYAQ NUMBER NINETY |
|
419 |
case 0X1EC83: retval = 100; break; // INDIC SIYAQ NUMBER ONE HUNDRED |
|
420 |
case 0X1EC84: retval = 200; break; // INDIC SIYAQ NUMBER TWO HUNDRED |
|
421 |
case 0X1EC85: retval = 300; break; // INDIC SIYAQ NUMBER THREE HUNDRED |
|
422 |
case 0X1EC86: retval = 400; break; // INDIC SIYAQ NUMBER FOUR HUNDRED |
|
423 |
case 0X1EC87: retval = 500; break; // INDIC SIYAQ NUMBER FIVE HUNDRED |
|
424 |
case 0X1EC88: retval = 600; break; // INDIC SIYAQ NUMBER SIX HUNDRED |
|
425 |
case 0X1EC89: retval = 700; break; // INDIC SIYAQ NUMBER SEVEN HUNDRED |
|
426 |
case 0X1EC8A: retval = 800; break; // INDIC SIYAQ NUMBER EIGHT HUNDRED |
|
427 |
case 0X1EC8B: retval = 900; break; // INDIC SIYAQ NUMBER NINE HUNDRED |
|
428 |
case 0X1EC8C: retval = 1000; break; // INDIC SIYAQ NUMBER ONE THOUSAND |
|
429 |
case 0X1EC8D: retval = 2000; break; // INDIC SIYAQ NUMBER TWO THOUSAND |
|
430 |
case 0X1EC8E: retval = 3000; break; // INDIC SIYAQ NUMBER THREE THOUSAND |
|
431 |
case 0X1EC8F: retval = 4000; break; // INDIC SIYAQ NUMBER FOUR THOUSAND |
|
432 |
case 0X1EC90: retval = 5000; break; // INDIC SIYAQ NUMBER FIVE THOUSAND |
|
433 |
case 0X1EC91: retval = 6000; break; // INDIC SIYAQ NUMBER SIX THOUSAND |
|
434 |
case 0X1EC92: retval = 7000; break; // INDIC SIYAQ NUMBER SEVEN THOUSAND |
|
435 |
case 0X1EC93: retval = 8000; break; // INDIC SIYAQ NUMBER EIGHT THOUSAND |
|
436 |
case 0X1EC94: retval = 9000; break; // INDIC SIYAQ NUMBER NINE THOUSAND |
|
55013 | 437 |
case 0X1EC95: retval = 10000; break; // INDIC SIYAQ NUMBER TEN THOUSAND |
438 |
case 0X1EC96: retval = 20000; break; // INDIC SIYAQ NUMBER TWENTY THOUSAND |
|
439 |
case 0X1EC97: retval = 30000; break; // INDIC SIYAQ NUMBER THIRTY THOUSAND |
|
440 |
case 0X1EC98: retval = 40000; break; // INDIC SIYAQ NUMBER FORTY THOUSAND |
|
441 |
case 0X1EC99: retval = 50000; break; // INDIC SIYAQ NUMBER FIFTY THOUSAND |
|
442 |
case 0X1EC9A: retval = 60000; break; // INDIC SIYAQ NUMBER SIXTY THOUSAND |
|
443 |
case 0X1EC9B: retval = 70000; break; // INDIC SIYAQ NUMBER SEVENTY THOUSAND |
|
444 |
case 0X1EC9C: retval = 80000; break; // INDIC SIYAQ NUMBER EIGHTY THOUSAND |
|
445 |
case 0X1EC9D: retval = 90000; break; // INDIC SIYAQ NUMBER NINETY THOUSAND |
|
446 |
case 0X1EC9E: retval = 100000; break; // INDIC SIYAQ NUMBER LAKH |
|
447 |
case 0X1EC9F: retval = 200000; break; // INDIC SIYAQ NUMBER LAKHAN |
|
448 |
case 0X1ECA0: retval = 100000; break; // INDIC SIYAQ LAKH MARK |
|
449 |
case 0X1ECA1: retval = 10000000; break;// INDIC SIYAQ NUMBER KAROR |
|
450 |
case 0X1ECA2: retval = 20000000; break;// INDIC SIYAQ NUMBER KARORAN |
|
451 |
case 0X1ECB3: retval = 10000; break; // INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND |
|
452 |
case 0X1ECB4: retval = 100000; break; // INDIC SIYAQ NUMBER ALTERNATE LAKH MARK |
|
453 |
case 0X1ED0D: retval = 40; break; // OTTOMAN SIYAQ NUMBER FORTY |
|
454 |
case 0X1ED0E: retval = 50; break; // OTTOMAN SIYAQ NUMBER FIFTY |
|
455 |
case 0X1ED0F: retval = 60; break; // OTTOMAN SIYAQ NUMBER SIXTY |
|
456 |
case 0X1ED10: retval = 70; break; // OTTOMAN SIYAQ NUMBER SEVENTY |
|
457 |
case 0X1ED11: retval = 80; break; // OTTOMAN SIYAQ NUMBER EIGHTY |
|
458 |
case 0X1ED12: retval = 90; break; // OTTOMAN SIYAQ NUMBER NINETY |
|
459 |
case 0X1ED13: retval = 100; break; // OTTOMAN SIYAQ NUMBER ONE HUNDRED |
|
460 |
case 0X1ED14: retval = 200; break; // OTTOMAN SIYAQ NUMBER TWO HUNDRED |
|
461 |
case 0X1ED15: retval = 300; break; // OTTOMAN SIYAQ NUMBER THREE HUNDRED |
|
462 |
case 0X1ED16: retval = 400; break; // OTTOMAN SIYAQ NUMBER FOUR HUNDRED |
|
463 |
case 0X1ED17: retval = 500; break; // OTTOMAN SIYAQ NUMBER FIVE HUNDRED |
|
464 |
case 0X1ED18: retval = 600; break; // OTTOMAN SIYAQ NUMBER SIX HUNDRED |
|
465 |
case 0X1ED19: retval = 700; break; // OTTOMAN SIYAQ NUMBER SEVEN HUNDRED |
|
466 |
case 0X1ED1A: retval = 800; break; // OTTOMAN SIYAQ NUMBER EIGHT HUNDRED |
|
467 |
case 0X1ED1B: retval = 900; break; // OTTOMAN SIYAQ NUMBER NINE HUNDRED |
|
468 |
case 0X1ED1C: retval = 1000; break; // OTTOMAN SIYAQ NUMBER ONE THOUSAND |
|
469 |
case 0X1ED1D: retval = 2000; break; // OTTOMAN SIYAQ NUMBER TWO THOUSAND |
|
470 |
case 0X1ED1E: retval = 3000; break; // OTTOMAN SIYAQ NUMBER THREE THOUSAND |
|
471 |
case 0X1ED1F: retval = 4000; break; // OTTOMAN SIYAQ NUMBER FOUR THOUSAND |
|
472 |
case 0X1ED20: retval = 5000; break; // OTTOMAN SIYAQ NUMBER FIVE THOUSAND |
|
473 |
case 0X1ED21: retval = 6000; break; // OTTOMAN SIYAQ NUMBER SIX THOUSAND |
|
474 |
case 0X1ED22: retval = 7000; break; // OTTOMAN SIYAQ NUMBER SEVEN THOUSAND |
|
475 |
case 0X1ED23: retval = 8000; break; // OTTOMAN SIYAQ NUMBER EIGHT THOUSAND |
|
476 |
case 0X1ED24: retval = 9000; break; // OTTOMAN SIYAQ NUMBER NINE THOUSAND |
|
477 |
case 0X1ED25: retval = 10000; break; // OTTOMAN SIYAQ NUMBER TEN THOUSAND |
|
478 |
case 0X1ED26: retval = 20000; break; // OTTOMAN SIYAQ NUMBER TWENTY THOUSAND |
|
479 |
case 0X1ED27: retval = 30000; break; // OTTOMAN SIYAQ NUMBER THIRTY THOUSAND |
|
480 |
case 0X1ED28: retval = 40000; break; // OTTOMAN SIYAQ NUMBER FORTY THOUSAND |
|
481 |
case 0X1ED29: retval = 50000; break; // OTTOMAN SIYAQ NUMBER FIFTY THOUSAND |
|
482 |
case 0X1ED2A: retval = 60000; break; // OTTOMAN SIYAQ NUMBER SIXTY THOUSAND |
|
483 |
case 0X1ED2B: retval = 70000; break; // OTTOMAN SIYAQ NUMBER SEVENTY THOUSAND |
|
484 |
case 0X1ED2C: retval = 80000; break; // OTTOMAN SIYAQ NUMBER EIGHTY THOUSAND |
|
485 |
case 0X1ED2D: retval = 90000; break; // OTTOMAN SIYAQ NUMBER NINETY THOUSAND |
|
486 |
case 0X1ED38: retval = 400; break; // OTTOMAN SIYAQ ALTERNATE NUMBER FOUR HUNDRED |
|
487 |
case 0X1ED39: retval = 600; break; // OTTOMAN SIYAQ ALTERNATE NUMBER SIX HUNDRED |
|
488 |
case 0X1ED3A: retval = 2000; break; // OTTOMAN SIYAQ ALTERNATE NUMBER TWO THOUSAND |
|
489 |
case 0X1ED3B: retval = 10000; break; // OTTOMAN SIYAQ ALTERNATE NUMBER TEN THOUSAND |
|
2 | 490 |
default: retval = -2; break; |
491 |
} |
|
492 |
||
493 |
break; |
|
494 |
case ($$valueJavaSupradecimal): // Java supradecimal |
|
495 |
retval = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10; |
|
496 |
break; |
|
497 |
} |
|
498 |
return retval; |
|
499 |
} |
|
500 |
||
52979
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
501 |
boolean isDigit(int ch) { |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
502 |
int props = getProperties(ch); |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
503 |
return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER; |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
504 |
} |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
505 |
|
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
506 |
boolean isLowerCase(int ch) { |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
507 |
int props = getProperties(ch); |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
508 |
return (props & $$maskType) == Character.LOWERCASE_LETTER; |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
509 |
} |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
510 |
|
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
511 |
boolean isUpperCase(int ch) { |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
512 |
int props = getProperties(ch); |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
513 |
return (props & $$maskType) == Character.UPPERCASE_LETTER; |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
514 |
} |
7384e00d5860
8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents:
52633
diff
changeset
|
515 |
|
2 | 516 |
boolean isWhitespace(int ch) { |
517 |
int props = getProperties(ch); |
|
518 |
return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace); |
|
519 |
} |
|
520 |
||
521 |
byte getDirectionality(int ch) { |
|
522 |
int val = getProperties(ch); |
|
523 |
byte directionality = (byte)((val & $$maskBidi) >> $$shiftBidi); |
|
524 |
if (directionality == 0xF ) { |
|
525 |
directionality = Character.DIRECTIONALITY_UNDEFINED; |
|
526 |
} |
|
527 |
return directionality; |
|
528 |
} |
|
529 |
||
530 |
boolean isMirrored(int ch) { |
|
531 |
int props = getProperties(ch); |
|
532 |
return ((props & $$maskMirrored) != 0); |
|
533 |
} |
|
534 |
||
535 |
static final CharacterData instance = new CharacterData01(); |
|
536 |
private CharacterData01() {}; |
|
537 |
||
538 |
$$Tables |
|
539 |
||
540 |
static { |
|
541 |
$$Initializers |
|
542 |
} |
|
543 |
} |