… | |
… | |
2243 | uint32_t from_unicode (unicode_t unicode) const { |
2243 | uint32_t from_unicode (unicode_t unicode) const { |
2244 | if (unicode == 0x2312) return 0x225e; |
2244 | if (unicode == 0x2312) return 0x225e; |
2245 | uint8_t l = unicode; |
2245 | uint8_t l = unicode; |
2246 | uint16_t h = unicode >> 8; |
2246 | uint16_t h = unicode >> 8; |
2247 | if (h <= 0xff |
2247 | if (h <= 0xff |
2248 | && l <= 0xff |
|
|
2249 | && jis0208_1990_0_f_i[h - 0x00]) |
2248 | && jis0208_1990_0_f_i[h - 0x00]) |
2250 | return jis0208_1990_0_f_i[h - 0x00][l - 0x00] |
2249 | return jis0208_1990_0_f_i[h - 0x00][l - 0x00] |
2251 | ? jis0208_1990_0_f_i[h - 0x00][l - 0x00] |
2250 | ? jis0208_1990_0_f_i[h - 0x00][l - 0x00] |
2252 | : NOCHAR; |
2251 | : NOCHAR; |
2253 | return NOCHAR; |
2252 | return NOCHAR; |