ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/jis0201_1976_0.h
(Generate patch)

Comparing rxvt-unicode/src/table/jis0201_1976_0.h (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:29 2004 UTC

2// AUTOMATICALLLY GENERATED by gentables 2// AUTOMATICALLLY GENERATED by gentables
3// 3//
4#ifdef ENCODING_JP 4#ifdef ENCODING_JP
5 5
6 6
7struct rxvt_codeset_conv_jis0201_1976_0 : rxvt_codeset_conv { 7static uint32_t cs_jis0201_1976_0_from_unicode (unicode_t unicode) {
8 uint32_t from_unicode (uint32_t unicode) const {
9 if (unicode <= 0x007d) return unicode; 8 if (unicode <= 0x007d) return unicode;
10 if (0x007f <= unicode && unicode <= 0x009f) return unicode; 9 if (0x007f <= unicode && unicode <= 0x009f) return unicode;
11 if (unicode == 0x203e) return 0x007e; 10 if (unicode == 0x203e) return 0x007e;
12 if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0; 11 if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0;
13 return NOCHAR; 12 return NOCHAR;
14 } 13}
15 uint32_t to_unicode (uint32_t enc) const {
16 if (enc <= 0x007d) return enc;
17 if (0x007f <= enc && enc <= 0x009f) return enc;
18 if (enc == 0x007e) return 0x203e;
19 if (enc <= 0x00a1 && 0x00df <= enc) return enc + 0xfec0;
20 return NOCHAR;
21 }
22} rxvt_codeset_conv_jis0201_1976_0;
23 14
24#else 15#else
25 16
26#define rxvt_codeset_conv_jis0201_1976_0 rxvt_codeset_conv_unknown 17#define cs_jis0201_1976_0_from_unicode cs_unknown_from_unicode
18#define cs_jis0201_1976_0_to_unicode cs_unknown_to_unicode
27 19
28#endif 20#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines