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.3 by pcg, Mon Mar 15 00:27:13 2004 UTC

3// 3//
4#ifdef ENCODING_JP 4#ifdef ENCODING_JP
5 5
6 6
7struct rxvt_codeset_conv_jis0201_1976_0 : rxvt_codeset_conv { 7struct rxvt_codeset_conv_jis0201_1976_0 : rxvt_codeset_conv {
8 uint32_t from_unicode (uint32_t unicode) const { 8 uint32_t from_unicode (unicode_t unicode) const {
9 if (unicode <= 0x007d) return unicode; 9 if (unicode <= 0x007d) return unicode;
10 if (0x007f <= unicode && unicode <= 0x009f) return unicode; 10 if (0x007f <= unicode && unicode <= 0x009f) return unicode;
11 if (unicode == 0x203e) return 0x007e; 11 if (unicode == 0x203e) return 0x007e;
12 if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0; 12 if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0;
13 return NOCHAR;
14 }
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; 13 return NOCHAR;
21 } 14 }
22} rxvt_codeset_conv_jis0201_1976_0; 15} rxvt_codeset_conv_jis0201_1976_0;
23 16
24#else 17#else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines