Lines Matching refs:code

61     u16     code;  in ExSJIS_BEtoUTF16_LE()  local
68 code = (u16)((u16)*sjisp++ << 8); in ExSJIS_BEtoUTF16_LE()
69 code |= (u16)*sjisp++; in ExSJIS_BEtoUTF16_LE()
73 code = (u16)*sjisp++; in ExSJIS_BEtoUTF16_LE()
76 if (code == 0x005c) in ExSJIS_BEtoUTF16_LE()
81 else if (code == 0x007e) in ExSJIS_BEtoUTF16_LE()
86 else if ((code == 0x000d) || (code == 0x000a)) in ExSJIS_BEtoUTF16_LE()
88 *unip = code; // Line feed code in ExSJIS_BEtoUTF16_LE()
91 else if ((code >= 0x0020) && (code < 0x007e)) // ' ' �` } in ExSJIS_BEtoUTF16_LE()
93 *unip = code; in ExSJIS_BEtoUTF16_LE()
96 … else if ((code >= 0x00a1) && (code <= 0x00df)) // Double-byte period, tilde, and degree symbol in ExSJIS_BEtoUTF16_LE()
98 *unip = (u16)((code - 0x00a1) + 0xff61); in ExSJIS_BEtoUTF16_LE()
101 else if ((code >= 0x8140) && (code <= 0x81fc)) // ' ' �` �� in ExSJIS_BEtoUTF16_LE()
104 *unip = tblSJIS_UTF16_8140[code - 0x8140].unicode; in ExSJIS_BEtoUTF16_LE()
107 else if ((code >= 0x824f) && (code <= 0x8258)) // �O �` �X in ExSJIS_BEtoUTF16_LE()
109 *unip = (u16)((code - 0x824f) + 0xff10); in ExSJIS_BEtoUTF16_LE()
112 else if ((code >= 0x8260) && (code <= 0x8279)) // �` �` �y in ExSJIS_BEtoUTF16_LE()
114 *unip = (u16)((code - 0x8260) + 0xff21); in ExSJIS_BEtoUTF16_LE()
117 else if ((code >= 0x8281) && (code <= 0x829a)) // �� �` �� in ExSJIS_BEtoUTF16_LE()
119 *unip = (u16)((code - 0x8281) + 0xff41); in ExSJIS_BEtoUTF16_LE()
122 else if ((code >= 0x829f) && (code <= 0x82f1)) // �� �` �� in ExSJIS_BEtoUTF16_LE()
124 *unip = (u16)((code - 0x829f) + 0x3041); in ExSJIS_BEtoUTF16_LE()
127 else if ((code >= 0x8340) && (code <= 0x8396)) // �@ �` �� * 0x837f is skipped in ExSJIS_BEtoUTF16_LE()
129 *unip = (u16)((code - 0x8340) + 0x30a1); in ExSJIS_BEtoUTF16_LE()
130 if (code == 0x837f) in ExSJIS_BEtoUTF16_LE()
134 else if (code > 0x837f) in ExSJIS_BEtoUTF16_LE()
140 else if ((code >= 0x839f) && (code <= 0x83b6)) // �� �` �� in ExSJIS_BEtoUTF16_LE()
142 *unip = (u16)((code - 0x839f) + 0x0391); in ExSJIS_BEtoUTF16_LE()
143 if (code >= 0x83b0) in ExSJIS_BEtoUTF16_LE()
147 else if ((code >= 0x83bf) && (code <= 0x83d6)) // �� �` �� in ExSJIS_BEtoUTF16_LE()
149 *unip = (u16)((code - 0x83bf) + 0x03b1); in ExSJIS_BEtoUTF16_LE()
150 if (code >= 0x83d0) in ExSJIS_BEtoUTF16_LE()
154 else if ((code >= 0x8440) && (code <= 0x8460)) // �@ �` �` in ExSJIS_BEtoUTF16_LE()
156 *unip = (u16)((code - 0x8440) + 0x0410); in ExSJIS_BEtoUTF16_LE()
157 if (code == 0x8446) in ExSJIS_BEtoUTF16_LE()
161 else if (code > 0x8446) in ExSJIS_BEtoUTF16_LE()
167 else if ((code >= 0x8470) && (code <= 0x8491)) // �p �` �� * 0x847f is skipped in ExSJIS_BEtoUTF16_LE()
169 *unip = (u16)((code - 0x8470) + 0x0430); in ExSJIS_BEtoUTF16_LE()
170 if (code == 0x8476) in ExSJIS_BEtoUTF16_LE()
174 else if (code == 0x847f) in ExSJIS_BEtoUTF16_LE()
178 else if (code > 0x8476) in ExSJIS_BEtoUTF16_LE()
181 if (code > 0x847f) in ExSJIS_BEtoUTF16_LE()
188 else if ((code >= 0x849f) && (code <= 0x84be)) // �� �` �� in ExSJIS_BEtoUTF16_LE()
191 *unip = tblSJIS_UTF16_849f[code - 0x849f].unicode; in ExSJIS_BEtoUTF16_LE()
208 u16 code, sjis_le; in ExUTF16_LEtoSJIS_BE() local
212 code = *unip++; in ExUTF16_LEtoSJIS_BE()
215 if (code == 0x00a5) in ExUTF16_LEtoSJIS_BE()
220 else if (code == 0x005c) in ExUTF16_LEtoSJIS_BE()
225 else if (code == 0x203e) in ExUTF16_LEtoSJIS_BE()
230 else if ((code == 0x000d) || (code == 0x000a)) in ExUTF16_LEtoSJIS_BE()
232 sjis_le = code; // Line feed code in ExUTF16_LEtoSJIS_BE()
235 else if ((code >= 0x0020) && (code < 0x007e)) // ' ' �` } in ExUTF16_LEtoSJIS_BE()
237 sjis_le = code; in ExUTF16_LEtoSJIS_BE()
240 else if ((code >= 0x00a2) && (code <= 0x00f7)) in ExUTF16_LEtoSJIS_BE()
243 SearchUnicodeTable(code, (SjisUtf16Pare *) & tblSJIS_UTF16_8140[0xc], in ExUTF16_LEtoSJIS_BE()
247 else if ((code >= 0xff61) && (code <= 0xff9f)) // � �` � in ExUTF16_LEtoSJIS_BE()
249 sjis_le = (u16)((code - 0xff61) + 0x00a1); in ExUTF16_LEtoSJIS_BE()
252 else if (code == 0x4edd) in ExUTF16_LEtoSJIS_BE()
257 else if ((code >= 0xff01) && (code <= 0xffe5)) in ExUTF16_LEtoSJIS_BE()
259 if ((code >= 0xff10) && (code <= 0xff19)) // �O �` �X in ExUTF16_LEtoSJIS_BE()
261 sjis_le = (u16)((code - 0xff10) + 0x824f); in ExUTF16_LEtoSJIS_BE()
264 else if ((code >= 0xff21) && (code <= 0xff3a)) // �` �` �y in ExUTF16_LEtoSJIS_BE()
266 sjis_le = (u16)((code - 0xff21) + 0x8260); in ExUTF16_LEtoSJIS_BE()
269 else if ((code >= 0xff41) && (code <= 0xff5a)) // �� �` �� in ExUTF16_LEtoSJIS_BE()
271 sjis_le = (u16)((code - 0xff41) + 0x8281); in ExUTF16_LEtoSJIS_BE()
276 SearchUnicodeTable(code, (SjisUtf16Pare *) & tblSJIS_UTF16_8140[3], in ExUTF16_LEtoSJIS_BE()
281 else if ((code >= 0x3000) && (code <= 0x30fe)) in ExUTF16_LEtoSJIS_BE()
283 if ((code >= 0x3041) && (code <= 0x3093)) // �� �` �� in ExUTF16_LEtoSJIS_BE()
285 sjis_le = (u16)((code - 0x3041) + 0x829f); in ExUTF16_LEtoSJIS_BE()
288 else if ((code >= 0x30a1) && (code <= 0x30f6)) // �@ �` �� * 0x837f is skipped in ExUTF16_LEtoSJIS_BE()
290 sjis_le = (u16)((code - 0x30a1) + 0x8340); in ExUTF16_LEtoSJIS_BE()
291 if (code >= 0x30e0) in ExUTF16_LEtoSJIS_BE()
299 SearchUnicodeTable(code, (SjisUtf16Pare *) & tblSJIS_UTF16_8140[0], in ExUTF16_LEtoSJIS_BE()
304 else if ((code >= 0x0391) && (code <= 0x03a9)) // �� �` �� in ExUTF16_LEtoSJIS_BE()
306 sjis_le = (u16)((code - 0x0391) + 0x839f); in ExUTF16_LEtoSJIS_BE()
307 if (code >= 0x03a3) in ExUTF16_LEtoSJIS_BE()
311 else if ((code >= 0x03b1) && (code <= 0x03c9)) // �� �` �� in ExUTF16_LEtoSJIS_BE()
313 sjis_le = (u16)((code - 0x03b1) + 0x83bf); in ExUTF16_LEtoSJIS_BE()
314 if (code >= 0x03c3) in ExUTF16_LEtoSJIS_BE()
318 else if (code == 0x0401) in ExUTF16_LEtoSJIS_BE()
323 else if ((code >= 0x0410) && (code <= 0x042f)) // �@ �` �` in ExUTF16_LEtoSJIS_BE()
325 sjis_le = (u16)((code - 0x0410) + 0x8440); in ExUTF16_LEtoSJIS_BE()
326 if (code >= 0x0416) in ExUTF16_LEtoSJIS_BE()
332 else if ((code >= 0x0430) && (code <= 0x044f)) // �p �` �� * 0x847f is skipped in ExUTF16_LEtoSJIS_BE()
334 sjis_le = (u16)((code - 0x0430) + 0x8470); in ExUTF16_LEtoSJIS_BE()
335 if (code >= 0x0436) in ExUTF16_LEtoSJIS_BE()
338 if (code >= 0x043e) in ExUTF16_LEtoSJIS_BE()
345 else if (code == 0x0451) in ExUTF16_LEtoSJIS_BE()
350 else if ((code >= 0x2500) && (code <= 0x254b)) // �� �` �� in ExUTF16_LEtoSJIS_BE()
353 SearchUnicodeTable(code, (SjisUtf16Pare *) & tblSJIS_UTF16_849f, TBL849f_ELEM_NUM); in ExUTF16_LEtoSJIS_BE()
356 else if (((code >= 0x2010) && (code <= 0x2312)) || ((code >= 0x25a0) && (code <= 0x266f))) in ExUTF16_LEtoSJIS_BE()
359 SearchUnicodeTable(code, (SjisUtf16Pare *) & tblSJIS_UTF16_8140[0x815c - 0x8140], in ExUTF16_LEtoSJIS_BE()