… | … | ||
---|---|---|---|
2189 | 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, | 2189 | 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, |
2190 | 0, 0, gb2312_1980_0_f_255 | 2190 | 0, 0, gb2312_1980_0_f_255 |
2191 | }; | 2191 | }; |
2192 | 2192 | ||
2193 | 2193 | ||
2194 | struct rxvt_codeset_conv_gb2312_1980_0 : rxvt_codeset_conv { | 2194 | static uint32_t cs_gb2312_1980_0_from_unicode (unicode_t unicode) { |
2195 | uint32_t from_unicode (unicode_t unicode) const { | ||
2196 | if (unicode == 0x02c7) return 0x2126; | 2195 | if (unicode == 0x02c7) return 0x2126; |
2197 | if (unicode == 0x02c9) return 0x2125; | 2196 | if (unicode == 0x02c9) return 0x2125; |
2198 | if (unicode == 0x2312) return 0x2150; | 2197 | if (unicode == 0x2312) return 0x2150; |
2199 | if (unicode == 0x2605) return 0x216f; | 2198 | if (unicode == 0x2605) return 0x216f; |
2200 | if (unicode == 0x2606) return 0x216e; | 2199 | if (unicode == 0x2606) return 0x216e; |
… | … | ||
2218 | && gb2312_1980_0_f_i[h - 0x00]) | 2217 | && gb2312_1980_0_f_i[h - 0x00]) |
2219 | return gb2312_1980_0_f_i[h - 0x00][l - 0x00] | 2218 | return gb2312_1980_0_f_i[h - 0x00][l - 0x00] |
2220 | ? gb2312_1980_0_f_i[h - 0x00][l - 0x00] | 2219 | ? gb2312_1980_0_f_i[h - 0x00][l - 0x00] |
2221 | : NOCHAR; | 2220 | : NOCHAR; |
2222 | return NOCHAR; | 2221 | return NOCHAR; |
2223 | } | 2222 | } |
2224 | } rxvt_codeset_conv_gb2312_1980_0; | ||
2225 | 2223 | ||
2226 | #else | 2224 | #else |
2227 | 2225 | ||
2228 | #define rxvt_codeset_conv_gb2312_1980_0 rxvt_codeset_conv_unknown | 2226 | #define cs_gb2312_1980_0_from_unicode cs_unknown_from_unicode |
2227 | #define cs_gb2312_1980_0_to_unicode cs_unknown_to_unicode | ||
2229 | 2228 | ||
2230 | #endif | 2229 | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |