lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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).


regards
Klaus