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

Comparing rxvt-unicode/src/encoding.h (file contents):
Revision 1.12 by root, Thu Jul 29 14:05:27 2004 UTC vs.
Revision 1.13 by root, Wed Aug 4 03:29:28 2004 UTC

66 REPLACEMENT_CHAR = 0xfffd, 66 REPLACEMENT_CHAR = 0xfffd,
67 NOCHAR = 65535, // must be invalid in ANY codeset (!) 67 NOCHAR = 65535, // must be invalid in ANY codeset (!)
68}; 68};
69 69
70struct rxvt_codeset_conv { 70struct rxvt_codeset_conv {
71 virtual uint32_t from_unicode (unicode_t unicode) const { return unicode; } 71 uint32_t (*from_unicode) (unicode_t unicode);
72#if ENCODING_TO_UNICODE 72#if ENCODING_TO_UNICODE
73 virtual unicode_t to_unicode (uint32_t enc) const { return enc; } 73 unicode_t (*to_unicode) (uint32_t enc);
74#endif 74#endif
75}; 75};
76 76
77extern const rxvt_codeset_conv *rxvt_codeset[NUM_CODESETS]; 77extern const rxvt_codeset_conv rxvt_codeset[NUM_CODESETS];
78 78
79extern unicode_t rxvt_compose (unicode_t c1, unicode_t c2); 79extern unicode_t rxvt_compose (unicode_t c1, unicode_t c2);
80 80
81#define FROM_UNICODE(cs,code) rxvt_codeset[cs]->from_unicode (code) 81#define FROM_UNICODE(cs,code) rxvt_codeset[cs].from_unicode (code)
82#define TO_UNICODE(cs,code) rxvt_codeset[cs]->to_unicode (code) 82#define TO_UNICODE(cs,code) rxvt_codeset[cs].to_unicode (code)
83 83
84struct unicode { // namespace für arme 84struct unicode { // namespace für arme
85 static bool is_space (unicode_t c); 85 static bool is_space (unicode_t c);
86}; 86};
87 87

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines