KDbSQL: Handle escape sequences in string literals
Handle escape sequences in string literals: \" \' \n \r \0 etc. Also: - \xhh -> character - \uxxxx -> 16-bit unicode character - \u{xxxxxx} -> 24-bit unicode "code point" character, known from JavaScript (ECMAScript 6) - Add autotests BUG:364950
Showing
- autotests/KDbTest.cpp 165 additions, 0 deletionsautotests/KDbTest.cpp
- autotests/KDbTest.h 4 additions, 0 deletionsautotests/KDbTest.h
- src/KDb.cpp 203 additions, 1 deletionsrc/KDb.cpp
- src/KDb.h 65 additions, 3 deletionssrc/KDb.h
- src/parser/KDbSqlScanner.l 15 additions, 4 deletionssrc/parser/KDbSqlScanner.l
Loading
Please register or sign in to comment