24 #include <QtCore/QIODevice> 25 #include <QtCore/QVariant> 26 #include <QtCore/QLocale> 28 #define YYSTYPE QVariant 31 #if ! defined(yyFlexLexerOnce) 32 #include <FlexLexer.h> 41 int yylex(YYSTYPE *yylval,
yy::location *yylloc, QJson::ParserPrivate* driver);
44 class JSonScanner :
public yyFlexLexer
47 explicit JSonScanner(QIODevice* io);
50 void allowSpecialNumbers(
bool allow);
54 int LexerInput(
char* buf,
int max_size);
56 bool m_allowSpecialNumbers;
62 QString m_currentString;