Lines Matching refs:utf32
98 static picoos_uint32 base_utf32_lowercase (picoos_uint32 utf32)
103 lc = utf32;
104 if (((utf32 >= 65313) && (utf32 <= 65338))) {
105 lc = (utf32 + 32);
106 } else if (((utf32 >= 66560) && (utf32 <= 66599))) {
107 lc = (utf32 + 40);
108 } else if (((utf32 >= 7680) && (utf32 <= 9423))) {
109 switch (utf32) {
131 if ( !(((utf32) % 2 == 1))) {
132 lc = (utf32 + 1);
142 lc = (utf32 - 8);
145 if (((utf32) % 2 == 1)) {
146 lc = (utf32 - 8);
151 lc = (utf32 + 16);
156 lc = (utf32 + 26);
243 switch (utf32) {
255 lc = (utf32 + 32);
287 if ( !(((utf32) % 2 == 1))) {
288 utf32 + 1);
296 if (((utf32) % 2 == 1)) {
297 lc = (utf32 + 1);
302 lc = (utf32 + 80);
308 lc = (utf32 + 48);
492 * Converts utf32 input to uppercase
493 * @param utf32 : a single character encoded in UTF32
494 * @return a single uppercase character encoded in UTF32
496 static picoos_uint32 base_utf32_uppercase (picoos_uint32 utf32)
500 lc = utf32;
501 if (((utf32 >= 65345) && (utf32 <= 65370))) {
502 lc = (utf32 - 32);
503 } else if (((utf32 >= 66600) && (utf32 <= 66639))) {
504 lc = (utf32 - 40);
505 } else if (((utf32 >= 7681) && (utf32 <= 9449))) {
506 switch (utf32) {
528 if (((utf32) % 2 == 1)) {
529 lc = (utf32 - 1);
539 lc = (utf32 + 8);
542 if (((utf32) % 2 == 1)) {
543 lc = (utf32 + 8);
548 lc = (utf32 - 16);
553 lc = (utf32 - 26);
637 switch (utf32) {
649 if ((utf32 != 247)) {
650 lc = (utf32 - 32);
683 if (((utf32) % 2 == 1)) {
684 lc = (utf32 - 1);
692 if ( !(((utf32) % 2 == 1))) {
693 lc = (utf32 - 1);
698 lc = (utf32 - 80);
704 lc = (utf32 - 48);
1068 * Converts utf8 input to utf32
1071 * @return a single character encoded in UTF32
1092 static picoos_int32 picobase_utf32_to_utf8 (picobase_utf32 utf32, picobase_utf8 utf8[], picoos_int32 utf8MaxLen, picoos_uint8 * done)
1098 if (utf32 < 128) {
1100 utf8[0] = utf32;
1101 } else if (utf32 < 2048) {
1103 utf8[1] = (128 + (utf32 % 64));
1104 utf32 = (utf32 / 64);
1105 utf8[0] = (192 + (utf32 % 32));
1106 } else if (utf32 < 65536) {
1108 utf8[2] = (128 + (utf32 % 64));
1109 utf32 = (utf32 / 64);
1110 utf8[1] = (128 + (utf32 % 64));
1111 utf32 = (utf32 / 64);
1112 utf8[0] = (224 + utf32);
1113 } else if (utf32 < 1048576) {
1115 utf8[3] = (128 + (utf32 % 64));
1116 utf32 = (utf32 / 64);
1117 utf8[2] = (128 + (utf32 % 64));
1118 utf32 = (utf32 / 64);
1119 utf8[1] = (128 + (utf32 % 64));
1120 utf32 = (utf32 / 64);
1121 utf8[0] = (240 + utf32);
1144 picobase_utf32 utf32;
1152 utf32 = picobase_utf8_to_utf32(utf8char, & done1);
1153 utf32 = base_utf32_lowercase(utf32);
1154 l = picobase_utf32_to_utf8(utf32, utf8char, PICOBASE_UTF8_MAXLEN, & done1);
1175 picobase_utf32 utf32;
1183 utf32 = picobase_utf8_to_utf32(utf8char, & done1);
1184 utf32 = base_utf32_uppercase(utf32);
1185 l = picobase_utf32_to_utf8(utf32, utf8char, PICOBASE_UTF8_MAXLEN, & done1);
1203 picoos_uint32 utf32;
1211 utf32 = picobase_utf8_to_utf32(utf8char,& done);
1212 isUpperCase = isUpperCase && (utf32 == base_utf32_uppercase(utf32));
1222 picoos_uint32 utf32;
1230 utf32 = picobase_utf8_to_utf32(utf8char,& done);
1231 isLowerCase = isLowerCase && (utf32 == base_utf32_lowercase(utf32));