YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

\x escape sequences
kenken
#1 Posted : Friday, June 30, 2017 9:33:54 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/30/2017(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
The document says escape sequences \x<hh>, but it's actually \x<hhhh> if _UNICODE is defined. Is the document wrong or bug?
kenken
#2 Posted : Sunday, July 16, 2017 2:50:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/30/2017(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I found another bug with \u and \U. In SQLexer::ReadString,

Code:

case _SC('U'):
case _SC('u'):  {
        const SQInteger maxdigits = x == 'u' ? 4 : 8;


In practically, maxdigits is always 8, because x is always '\\'.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.065 seconds.