Lines Matching refs:current

168 static inline void uintToString(LargestUInt value, char*& current) {  in uintToString()  argument
169 *--current = 0; in uintToString()
171 *--current = static_cast<char>(value % 10U + static_cast<unsigned>('0')); in uintToString()
598 Reader::Location current = begin; in normalizeEOL() local
599 while (current != end) { in normalizeEOL()
600 char c = *current++; in normalizeEOL()
602 if (current != end && *current == '\n') in normalizeEOL()
604 ++current; in normalizeEOL()
793 Location current = token.start_; in decodeNumber() local
794 bool isNegative = *current == '-'; in decodeNumber()
796 ++current; in decodeNumber()
803 while (current < token.end_) { in decodeNumber()
804 Char c = *current++; in decodeNumber()
813 if (value > threshold || current != token.end_ || in decodeNumber()
866 Location current = token.start_ + 1; // skip '"' in decodeString() local
868 while (current != end) { in decodeString()
869 Char c = *current++; in decodeString()
873 if (current == end) in decodeString()
874 return addError("Empty escape sequence in string", token, current); in decodeString()
875 Char escape = *current++; in decodeString()
903 if (!decodeUnicodeCodePoint(token, current, end, unicode)) in decodeString()
908 return addError("Bad escape sequence in string", token, current); in decodeString()
918 Location& current, in decodeUnicodeCodePoint() argument
922 if (!decodeUnicodeEscapeSequence(token, current, end, unicode)) in decodeUnicodeCodePoint()
926 if (end - current < 6) in decodeUnicodeCodePoint()
930 current); in decodeUnicodeCodePoint()
932 if (*(current++) == '\\' && *(current++) == 'u') { in decodeUnicodeCodePoint()
933 if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) { in decodeUnicodeCodePoint()
941 current); in decodeUnicodeCodePoint()
947 Location& current, in decodeUnicodeEscapeSequence() argument
950 if (end - current < 4) in decodeUnicodeEscapeSequence()
954 current); in decodeUnicodeEscapeSequence()
957 Char c = *current++; in decodeUnicodeEscapeSequence()
969 current); in decodeUnicodeEscapeSequence()
1016 Location current = begin_; in getLocationLineAndColumn() local
1017 Location lastLineStart = current; in getLocationLineAndColumn()
1019 while (current < location && current != end_) { in getLocationLineAndColumn()
1020 Char c = *current++; in getLocationLineAndColumn()
1022 if (*current == '\n') in getLocationLineAndColumn()
1023 ++current; in getLocationLineAndColumn()
1024 lastLineStart = current; in getLocationLineAndColumn()
1027 lastLineStart = current; in getLocationLineAndColumn()
1223 Location& current,
1227 Location& current,
1583 OurReader::Location current = begin; in normalizeEOL() local
1584 while (current != end) { in normalizeEOL()
1585 char c = *current++; in normalizeEOL()
1587 if (current != end && *current == '\n') in normalizeEOL()
1589 ++current; in normalizeEOL()
1801 Location current = token.start_; in decodeNumber() local
1802 bool isNegative = *current == '-'; in decodeNumber()
1804 ++current; in decodeNumber()
1811 while (current < token.end_) { in decodeNumber()
1812 Char c = *current++; in decodeNumber()
1821 if (value > threshold || current != token.end_ || in decodeNumber()
1898 Location current = token.start_ + 1; // skip '"' in decodeString() local
1900 while (current != end) { in decodeString()
1901 Char c = *current++; in decodeString()
1905 if (current == end) in decodeString()
1906 return addError("Empty escape sequence in string", token, current); in decodeString()
1907 Char escape = *current++; in decodeString()
1935 if (!decodeUnicodeCodePoint(token, current, end, unicode)) in decodeString()
1940 return addError("Bad escape sequence in string", token, current); in decodeString()
1950 Location& current, in decodeUnicodeCodePoint() argument
1954 if (!decodeUnicodeEscapeSequence(token, current, end, unicode)) in decodeUnicodeCodePoint()
1958 if (end - current < 6) in decodeUnicodeCodePoint()
1962 current); in decodeUnicodeCodePoint()
1964 if (*(current++) == '\\' && *(current++) == 'u') { in decodeUnicodeCodePoint()
1965 if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) { in decodeUnicodeCodePoint()
1973 current); in decodeUnicodeCodePoint()
1979 Location& current, in decodeUnicodeEscapeSequence() argument
1982 if (end - current < 4) in decodeUnicodeEscapeSequence()
1986 current); in decodeUnicodeEscapeSequence()
1989 Char c = *current++; in decodeUnicodeEscapeSequence()
2001 current); in decodeUnicodeEscapeSequence()
2048 Location current = begin_; in getLocationLineAndColumn() local
2049 Location lastLineStart = current; in getLocationLineAndColumn()
2051 while (current < location && current != end_) { in getLocationLineAndColumn()
2052 Char c = *current++; in getLocationLineAndColumn()
2054 if (*current == '\n') in getLocationLineAndColumn()
2055 ++current; in getLocationLineAndColumn()
2056 lastLineStart = current; in getLocationLineAndColumn()
2059 lastLineStart = current; in getLocationLineAndColumn()
2325 const Value::ObjectValues::iterator& current) in ValueIteratorBase() argument
2326 : current_(current), isNull_(false) {} in ValueIteratorBase()
2431 const Value::ObjectValues::iterator& current) in ValueConstIterator() argument
2432 : ValueIteratorBase(current) {} in ValueConstIterator()
2453 ValueIterator::ValueIterator(const Value::ObjectValues::iterator& current) in ValueIterator() argument
2454 : ValueIteratorBase(current) {} in ValueIterator()
4054 const char* current = path.c_str(); in makePath() local
4055 const char* end = current + path.length(); in makePath()
4057 while (current != end) { in makePath()
4058 if (*current == '[') { in makePath()
4059 ++current; in makePath()
4060 if (*current == '%') in makePath()
4064 for (; current != end && *current >= '0' && *current <= '9'; ++current) in makePath()
4065 index = index * 10 + ArrayIndex(*current - '0'); in makePath()
4068 if (current == end || *++current != ']') in makePath()
4069 invalidPath(path, int(current - path.c_str())); in makePath()
4070 } else if (*current == '%') { in makePath()
4072 ++current; in makePath()
4073 } else if (*current == '.' || *current == ']') { in makePath()
4074 ++current; in makePath()
4076 const char* beginName = current; in makePath()
4077 while (current != end && !strchr("[.", *current)) in makePath()
4078 ++current; in makePath()
4079 args_.push_back(JSONCPP_STRING(beginName, current)); in makePath()
4270 char* current = buffer + sizeof(buffer); in valueToString() local
4272 uintToString(LargestUInt(Value::maxLargestInt) + 1, current); in valueToString()
4273 *--current = '-'; in valueToString()
4275 uintToString(LargestUInt(-value), current); in valueToString()
4276 *--current = '-'; in valueToString()
4278 uintToString(LargestUInt(value), current); in valueToString()
4280 assert(current >= buffer); in valueToString()
4281 return current; in valueToString()
4286 char* current = buffer + sizeof(buffer); in valueToString() local
4287 uintToString(value, current); in valueToString()
4288 assert(current >= buffer); in valueToString()
4289 return current; in valueToString()