… | |
… | |
2237 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
2237 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
2238 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, jis0208_1990_0_f_255 |
2238 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, jis0208_1990_0_f_255 |
2239 | }; |
2239 | }; |
2240 | |
2240 | |
2241 | |
2241 | |
2242 | struct rxvt_codeset_conv_jis0208_1990_0 : rxvt_codeset_conv { |
2242 | static uint32_t cs_jis0208_1990_0_from_unicode (unicode_t unicode) { |
2243 | uint32_t from_unicode (unicode_t unicode) const { |
|
|
2244 | if (unicode == 0x2312) return 0x225e; |
2243 | if (unicode == 0x2312) return 0x225e; |
2245 | uint8_t l = unicode; |
2244 | uint8_t l = unicode; |
2246 | uint16_t h = unicode >> 8; |
2245 | uint16_t h = unicode >> 8; |
2247 | if (h <= 0xff |
2246 | if (0x00 <= h && h <= 0xff |
2248 | && l <= 0xff |
2247 | && 0x00 <= l && 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; |
2254 | } |
2253 | } |
2255 | } rxvt_codeset_conv_jis0208_1990_0; |
|
|
2256 | |
2254 | |
2257 | #else |
2255 | #else |
2258 | |
2256 | |
2259 | #define rxvt_codeset_conv_jis0208_1990_0 rxvt_codeset_conv_unknown |
2257 | #define cs_jis0208_1990_0_from_unicode cs_unknown_from_unicode |
|
|
2258 | #define cs_jis0208_1990_0_to_unicode cs_unknown_to_unicode |
2260 | |
2259 | |
2261 | #endif |
2260 | #endif |