On Mon, Oct 16, 2000 at 10:56:30PM +0800, Isaac Kar-Keung To wrote: > >>>>> "Roger" == Roger So <[EMAIL PROTECTED]> writes: > > Roger> No, the point I was making was, say you have 0x20 0xD0 0xF6 (a > Roger> space followed by some Big5 character). First you check > Roger> isprint(0x20); that succeeds, so you move on to isprint(0xD0). > Roger> Oops, 0xD0 is not printable. But MB_CUR_MAX = 2. So we check it > Roger> now with 2 bytes together ... isprint(0xD0F6) ... great, that's > Roger> printable, and we move on to the next byte ... > > I get it now. Yes, rather inefficient. Maybe another point for doing > everything in UCS-4.
Another classic case of space-time tradeoff I guess ... -- Roger So telnet://e-fever.org spacehunt at e-fever dot org SysOp, e-Fever BBS GnuPG 1024D/98FAA0AD F2C3 4136 8FB1 7502 0C0C 01B1 0E59 37AC 98FA A0AD

