[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature proposal: \x## notation in strings
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 25 May 2009 09:46:27 -0300
> On Mon, May 25, 2009 at 1:29 PM, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
> > Maybe 19? (To handle correctly lowercase "digits" such as \x0f.)
> Like I, you missed the "cu = toupper(ls->current);" line.
Sorry for the noise.
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.
-- Roberto