StelJsonParser.cpp   StelJsonParser.cpp 
skipping to change at line 205 skipping to change at line 205
QByteArray StelJsonParserInstance::readString() QByteArray StelJsonParserInstance::readString()
{ {
QByteArray name; QByteArray name;
char c; char c;
while (getChar(&c)) while (getChar(&c))
{ {
switch (c) switch (c)
{ {
case '"': case '"':
return name; return name;
break;
case '\\': case '\\':
{ {
bool gotChar=getChar(&c); bool gotChar=getChar(&c);
if (!gotChar) {qWarning() << "cannot read fu rther, error?"; continue;} if (!gotChar) {qWarning() << "cannot read fu rther, error?"; continue;}
if (c=='b') c='\b'; if (c=='b') c='\b';
if (c=='f') c='\f'; if (c=='f') c='\f';
if (c=='n') c='\n'; if (c=='n') c='\n';
if (c=='r') c='\r'; if (c=='r') c='\r';
if (c=='t') c='\t'; if (c=='t') c='\t';
if (c=='u') {qWarning() << "don't support \\ uxxxx char"; continue;} if (c=='u') {qWarning() << "don't support \\ uxxxx char"; continue;}
} }
break;
default: default:
name+=c; name+=c;
break;
} }
} }
if (atEnd()) if (atEnd())
throw std::runtime_error(qPrintable(QString("End of file bef ore end of string: "+name))); throw std::runtime_error(qPrintable(QString("End of file bef ore end of string: "+name)));
throw std::runtime_error(qPrintable(QString("Read error before end o f string: "+name))); throw std::runtime_error(qPrintable(QString("Read error before end o f string: "+name)));
return ""; return "";
} }
QVariant StelJsonParserInstance::readOther() QVariant StelJsonParserInstance::readOther()
{ {
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/