[libposix-development] Remarks about ctype support
Status: Pre-Alpha
Brought to you by:
hdante
From: Henrique A. <hd...@gm...> - 2009-06-30 03:03:53
|
I think we can't assume that the character set is ASCII compatible. We probably could restrict which character sets we'd allow, but there's at least one Unix vendor/user (IBM) that probably won't accept that. A safer implementation is the trivial case 'A': case 'B': case 'C': etc. (the compiler must optimize those in ASCII systems). Refer to: http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html I think the only possible assumptions about the portable character set are that '0' to '9' are sequential and that '\0' == 0. -- Henrique Dante de Almeida hd...@gm... |