Re: [libposix-development] Remarks about ctype support
Status: Pre-Alpha
Brought to you by:
hdante
From: Henrique A. <hd...@gm...> - 2009-06-30 04:51:32
|
We can do that in steps. Just assume the "POSIX" locale for now. 2009/6/30 <jh...@gm...>: > Yes, I was looking at that. To properly implement ctype I think we need to > implement locale > On Mon, Jun 29, 2009 at 10:03 PM, Henrique Almeida<hd...@gm...> wrote: >> >> 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... >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Libposix-development mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libposix-development >> > > > > -- > John Haitas > jh...@gm... > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Libposix-development mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libposix-development > > -- Henrique Dante de Almeida hd...@gm... |