98 int props = getPropertiesEx(ch);
99 return (props & $$maskOtherAlphabetic) != 0;
100 }
101
102 boolean isIdeographic(int ch) {
103 int props = getPropertiesEx(ch);
104 return (props & $$maskIdeographic) != 0;
105 }
106
107 boolean isJavaIdentifierStart(int ch) {
108 int props = getProperties(ch);
109 return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
110 }
111
112 boolean isJavaIdentifierPart(int ch) {
113 int props = getProperties(ch);
114 return ((props & $$nonzeroJavaPart) != 0);
115 }
116
117 boolean isUnicodeIdentifierStart(int ch) {
118 int props = getProperties(ch);
119 return ((props & $$maskIdentifierInfo) == $$valueUnicodeStart);
120 }
121
122 boolean isUnicodeIdentifierPart(int ch) {
123 int props = getProperties(ch);
124 return ((props & $$maskUnicodePart) != 0);
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 if ((val & $$maskCaseOffset) == $$maskCaseOffset) {
138 switch(ch) {
139 case 0x0130: mapChar = 0x0069; break;
140 case 0x023A: mapChar = 0x2C65; break;
141 case 0x023E: mapChar = 0x2C66; break;
142 case 0x0412: mapChar = 0x1C80; break;
143 case 0x0414: mapChar = 0x1C81; break;
144 case 0x041E: mapChar = 0x1C82; break;
|
98 int props = getPropertiesEx(ch);
99 return (props & $$maskOtherAlphabetic) != 0;
100 }
101
102 boolean isIdeographic(int ch) {
103 int props = getPropertiesEx(ch);
104 return (props & $$maskIdeographic) != 0;
105 }
106
107 boolean isJavaIdentifierStart(int ch) {
108 int props = getProperties(ch);
109 return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
110 }
111
112 boolean isJavaIdentifierPart(int ch) {
113 int props = getProperties(ch);
114 return ((props & $$nonzeroJavaPart) != 0);
115 }
116
117 boolean isUnicodeIdentifierStart(int ch) {
118 return (getPropertiesEx(ch) & $$maskIDStart) != 0 ||
119 ch == 0x2E2F;
120 }
121
122 boolean isUnicodeIdentifierPart(int ch) {
123 return (getPropertiesEx(ch) & $$maskIDContinue) != 0 ||
124 isIdentifierIgnorable(ch) ||
125 ch == 0x2E2F;
126 }
127
128 boolean isIdentifierIgnorable(int ch) {
129 int props = getProperties(ch);
130 return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
131 }
132
133 int toLowerCase(int ch) {
134 int mapChar = ch;
135 int val = getProperties(ch);
136
137 if ((val & $$maskLowerCase) != 0) {
138 if ((val & $$maskCaseOffset) == $$maskCaseOffset) {
139 switch(ch) {
140 case 0x0130: mapChar = 0x0069; break;
141 case 0x023A: mapChar = 0x2C65; break;
142 case 0x023E: mapChar = 0x2C66; break;
143 case 0x0412: mapChar = 0x1C80; break;
144 case 0x0414: mapChar = 0x1C81; break;
145 case 0x041E: mapChar = 0x1C82; break;
|