symbian-qemu-0.9.1-12/python-2.6.1/Modules/cjkcodecs/alg_jisx0201.h
author johnathan.white@2718R8BGH51.accenture.com
Mon, 08 Mar 2010 18:45:03 +0000
changeset 46 b6935a90ca64
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Modify framebuffer and NGA framebuffer to read screen size from board model dtb file. Optimise memory usuage of frame buffer Add example minigui application with hooks to profiler (which writes results to S:\). Modified NGA framebuffer to run its own dfc queue at high priority

#define JISX0201_R_ENCODE(c, assi)			\
	if ((c) < 0x80 && (c) != 0x5c && (c) != 0x7e)	\
		(assi) = (c);				\
	else if ((c) == 0x00a5) (assi) = 0x5c;		\
	else if ((c) == 0x203e) (assi) = 0x7e;
#define JISX0201_K_ENCODE(c, assi)			\
	if ((c) >= 0xff61 && (c) <= 0xff9f)		\
		(assi) = (c) - 0xfec0;
#define JISX0201_ENCODE(c, assi)			\
	JISX0201_R_ENCODE(c, assi)			\
	else JISX0201_K_ENCODE(c, assi)

#define JISX0201_R_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) == 0x7f) (assi) = 0x7f;
#define JISX0201_K_DECODE(c, assi)			\
	if ((c) >= 0xa1 && (c) <= 0xdf)			\
	(assi) = 0xfec0 + (c);
#define JISX0201_DECODE(c, assi)			\
	JISX0201_R_DECODE(c, assi)			\
	else JISX0201_K_DECODE(c, assi)