Lines Matching refs:json_pos_
85 : start_pos_(NULL), json_pos_(NULL), stack_depth_(0), in JSONReader()
167 json_pos_ = start_pos_; in JsonToValue()
177 SetErrorCode(JSON_UNEXPECTED_DATA_AFTER_ROOT, json_pos_); in JsonToValue()
183 SetErrorCode(JSON_SYNTAX_ERROR, json_pos_); in JsonToValue()
201 SetErrorCode(JSON_TOO_MUCH_NESTING, json_pos_); in BuildValue()
209 SetErrorCode(JSON_BAD_ROOT_ELEMENT_TYPE, json_pos_); in BuildValue()
246 json_pos_ += token.length; in BuildValue()
259 json_pos_ += token.length; in BuildValue()
265 SetErrorCode(JSON_TRAILING_COMMA, json_pos_); in BuildValue()
284 json_pos_ += token.length; in BuildValue()
290 SetErrorCode(JSON_UNQUOTED_DICTIONARY_KEY, json_pos_); in BuildValue()
302 json_pos_ += token.length; in BuildValue()
307 json_pos_ += token.length; in BuildValue()
319 json_pos_ += token.length; in BuildValue()
325 SetErrorCode(JSON_TRAILING_COMMA, json_pos_); in BuildValue()
346 json_pos_ += token.length; in BuildValue()
355 Token token(Token::NUMBER, json_pos_, 0); in ParseNumberToken()
356 wchar_t c = *json_pos_; in ParseNumberToken()
405 Token token(Token::STRING, json_pos_, 1); in ParseStringToken()
415 SetErrorCode(JSON_INVALID_ESCAPE, json_pos_ + token.length); in ParseStringToken()
421 SetErrorCode(JSON_INVALID_ESCAPE, json_pos_ + token.length); in ParseStringToken()
436 SetErrorCode(JSON_INVALID_ESCAPE, json_pos_ + token.length); in ParseStringToken()
518 switch (*json_pos_) { in ParseToken()
525 token = Token(Token::NULL_TOKEN, json_pos_, 4); in ParseToken()
530 token = Token(Token::BOOL_TRUE, json_pos_, 4); in ParseToken()
535 token = Token(Token::BOOL_FALSE, json_pos_, 5); in ParseToken()
539 token = Token(Token::ARRAY_BEGIN, json_pos_, 1); in ParseToken()
543 token = Token(Token::ARRAY_END, json_pos_, 1); in ParseToken()
547 token = Token(Token::LIST_SEPARATOR, json_pos_, 1); in ParseToken()
551 token = Token(Token::OBJECT_BEGIN, json_pos_, 1); in ParseToken()
555 token = Token(Token::OBJECT_END, json_pos_, 1); in ParseToken()
559 token = Token(Token::OBJECT_PAIR_SEPARATOR, json_pos_, 1); in ParseToken()
584 while ('\0' != *json_pos_) { in EatWhitespaceAndComments()
585 switch (*json_pos_) { in EatWhitespaceAndComments()
590 ++json_pos_; in EatWhitespaceAndComments()
605 if ('/' != *json_pos_) in EatComment()
608 wchar_t next_char = *(json_pos_ + 1); in EatComment()
611 json_pos_ += 2; in EatComment()
612 while ('\0' != *json_pos_) { in EatComment()
613 switch (*json_pos_) { in EatComment()
616 ++json_pos_; in EatComment()
619 ++json_pos_; in EatComment()
624 json_pos_ += 2; in EatComment()
625 while ('\0' != *json_pos_) { in EatComment()
626 if ('*' == *json_pos_ && '/' == *(json_pos_ + 1)) { in EatComment()
627 json_pos_ += 2; in EatComment()
630 ++json_pos_; in EatComment()
640 if ('\0' == *json_pos_) in NextStringMatch()
642 if (*(json_pos_ + i) != str[i]) in NextStringMatch()