[KoCo-CVS] [Commit] cjkcodecs/src/maps alg_jisx0201.h
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-05-20 11:44:33
|
perky 03/05/20 04:33:33 Added: src/maps alg_jisx0201.h Log: Add JIS X 0201 Algorithmic(really? :) encoder/decoder Revision Changes Path 1.1 cjkcodecs/src/maps/alg_jisx0201.h Index: alg_jisx0201.h =================================================================== /* $Id: alg_jisx0201.h,v 1.1 2003/05/20 11:33:32 perky Exp $ */ #define JISX0201_ENCODE(c, assi) \ if ((c) < 0x5c) (assi) = (c); \ else if ((c) > 0x5c && (c) < 0x7e) \ (assi) = (c); \ else if ((c) == 0x00a5) (assi) = 0x5c; \ else if ((c) == 0x203e) (assi) = 0x7e; \ else if ((c) >= 0xff61 && (c) <= 0xff9f) \ (assi) = (c) - 0xfec0; #define JISX0201_DECODE(c, assi) \ if ((c) < 0x5c) (assi) = (c); \ else if ((c) == 0x5c) (assi) = 0x00a5; \ else if ((c) < 0x7e) (assi) = (c); \ else if ((c) == 0x7e) (assi) = 0x203e; \ else if ((c) >= 0xa1 && (c) <= 0xdf) \ (assi) = 0xfec0 + (c); |