[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Feature proposal: \x## notation in strings
- From: Klaus Ripke <paul-lua@...>
- Date: Mon, 25 May 2009 15:15:48 +0200
On Mon, May 25, 2009 at 09:46:27AM -0300, Roberto Ierusalimschy wrote:
> We are deprecating the use of ctype inside the Lua core, (See for
> instance http://lua-users.org/lists/lua-l/2006-12/msg00155.html for a
> discussion about the subject.) Our current replacement does not have
> toupper (the obvious implementation as a macro would need another 257
> bytes), so we have to handle the lowercase "digits" explicitly.
a spare bit for "islower" in your ctype table would do
as the offset to upper is known to be 32 (or 0).