Lines Matching refs:Location
80 bool Reader::containsNewLine(Reader::Location begin, Reader::Location end) { in containsNewLine()
331 Location commentBegin = current_ - 1; in readComment()
353 String Reader::normalizeEOL(Reader::Location begin, Reader::Location end) { in normalizeEOL()
356 Reader::Location current = begin; in normalizeEOL()
372 void Reader::addComment(Location begin, Location end, in addComment()
410 Location p = current_; in readNumber()
551 Location current = token.start_; in decodeNumber()
624 Location current = token.start_ + 1; // skip '"' in decodeString()
625 Location end = token.end_ - 1; // do not include '"' in decodeString()
675 bool Reader::decodeUnicodeCodePoint(Token& token, Location& current, in decodeUnicodeCodePoint()
676 Location end, unsigned int& unicode) { in decodeUnicodeCodePoint()
700 bool Reader::decodeUnicodeEscapeSequence(Token& token, Location& current, in decodeUnicodeEscapeSequence()
701 Location end, in decodeUnicodeEscapeSequence()
726 bool Reader::addError(const String& message, Token& token, Location extra) { in addError()
762 void Reader::getLocationLineAndColumn(Location location, int& line, in getLocationLineAndColumn()
764 Location current = begin_; in getLocationLineAndColumn()
765 Location lastLineStart = current; in getLocationLineAndColumn()
784 String Reader::getLocationLineAndColumn(Location location) const { in getLocationLineAndColumn()
886 using Location = const Char*; typedef in Json::OurReader
926 Location start_;
927 Location end_;
934 Location extra_;
958 bool decodeUnicodeCodePoint(Token& token, Location& current, Location end,
960 bool decodeUnicodeEscapeSequence(Token& token, Location& current,
961 Location end, unsigned int& unicode);
962 bool addError(const String& message, Token& token, Location extra = nullptr);
969 void getLocationLineAndColumn(Location location, int& line,
971 String getLocationLineAndColumn(Location location) const;
972 void addComment(Location begin, Location end, CommentPlacement placement);
975 static String normalizeEOL(Location begin, Location end);
976 static bool containsNewLine(Location begin, Location end);
983 Location begin_ = nullptr;
984 Location end_ = nullptr;
985 Location current_ = nullptr;
986 Location lastValueEnd_ = nullptr;
997 bool OurReader::containsNewLine(OurReader::Location begin, in containsNewLine()
998 OurReader::Location end) { in containsNewLine()
1295 const Location commentBegin = current_ - 1; in readComment()
1328 String OurReader::normalizeEOL(OurReader::Location begin, in normalizeEOL()
1329 OurReader::Location end) { in normalizeEOL()
1332 OurReader::Location current = begin; in normalizeEOL()
1348 void OurReader::addComment(Location begin, Location end, in addComment()
1391 Location p = current_; in readNumber()
1560 Location current = token.start_; in decodeNumber()
1671 Location current = token.start_ + 1; // skip '"' in decodeString()
1672 Location end = token.end_ - 1; // do not include '"' in decodeString()
1722 bool OurReader::decodeUnicodeCodePoint(Token& token, Location& current, in decodeUnicodeCodePoint()
1723 Location end, unsigned int& unicode) { in decodeUnicodeCodePoint()
1747 bool OurReader::decodeUnicodeEscapeSequence(Token& token, Location& current, in decodeUnicodeEscapeSequence()
1748 Location end, in decodeUnicodeEscapeSequence()
1773 bool OurReader::addError(const String& message, Token& token, Location extra) { in addError()
1809 void OurReader::getLocationLineAndColumn(Location location, int& line, in getLocationLineAndColumn()
1811 Location current = begin_; in getLocationLineAndColumn()
1812 Location lastLineStart = current; in getLocationLineAndColumn()
1831 String OurReader::getLocationLineAndColumn(Location location) const { in getLocationLineAndColumn()