namespace DataFile {
JsonParser::JsonParser(Input &i, const string &s):
- ParserMode(i, s),
- toplevel_state(STATE_INIT)
+ ParserMode(i, s)
{ }
Statement JsonParser::parse()
if(t)
{
token = *t;
- t = 0;
+ t = nullptr;
}
else
token = parse_token();
StringCodec::Utf8::Encoder enc;
bool escape = false;
- for(string::const_iterator i=str.begin(); i!=str.end(); )
+ for(auto i=str.begin(); i!=str.end(); )
{
StringCodec::unichar c = dec.decode_char(str, i);