Lines Matching defs:current
146 * @param current Input/Output string buffer.
149 static inline void uintToString(LargestUInt value, char*& current) {
150 *--current = 0;
152 *--current = char(value % 10) + '0';
392 // "Un-read" the current token and mark the current value as a null
544 Reader::Location current = begin;
545 while (current != end) {
546 char c = *current++;
548 if (current != end && *current == '\n')
550 ++current;
739 Location current = token.start_;
740 bool isNegative = *current == '-';
742 ++current;
749 while (current < token.end_) {
750 Char c = *current++;
759 if (value > threshold || current != token.end_ ||
834 Location current = token.start_ + 1; // skip '"'
836 while (current != end) {
837 Char c = *current++;
841 if (current == end)
842 return addError("Empty escape sequence in string", token, current);
843 Char escape = *current++;
871 if (!decodeUnicodeCodePoint(token, current, end, unicode))
876 return addError("Bad escape sequence in string", token, current);
886 Location& current,
890 if (!decodeUnicodeEscapeSequence(token, current, end, unicode))
894 if (end - current < 6)
898 current);
900 if (*(current++) == '\\' && *(current++) == 'u') {
901 if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {
909 current);
915 Location& current,
918 if (end - current < 4)
922 current);
925 Char c = *current++;
937 current);
983 Location current = begin_;
984 Location lastLineStart = current;
986 while (current < location && current != end_) {
987 Char c = *current++;
989 if (*current == '\n')
990 ++current;
991 lastLineStart = current;
994 lastLineStart = current;
1203 Location& current,
1207 Location& current,
1350 // "Un-read" the current token and mark the current value as a null
1702 Location current = token.start_;
1703 bool isNegative = *current == '-';
1705 ++current;
1712 while (current < token.end_) {
1713 Char c = *current++;
1722 if (value > threshold || current != token.end_ ||
1797 Location current = token.start_ + 1; // skip '"'
1799 while (current != end) {
1800 Char c = *current++;
1804 if (current == end)
1805 return addError("Empty escape sequence in string", token, current);
1806 Char escape = *current++;
1834 if (!decodeUnicodeCodePoint(token, current, end, unicode))
1839 return addError("Bad escape sequence in string", token, current);
1849 Location& current,
1853 if (!decodeUnicodeEscapeSequence(token, current, end, unicode))
1857 if (end - current < 6)
1861 current);
1863 if (*(current++) == '\\' && *(current++) == 'u') {
1864 if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {
1872 current);
1878 Location& current,
1881 if (end - current < 4)
1885 current);
1888 Char c = *current++;
1900 current);
1946 Location current = begin_;
1947 Location lastLineStart = current;
1949 while (current < location && current != end_) {
1950 Char c = *current++;
1952 if (*current == '\n')
1953 ++current;
1954 lastLineStart = current;
1957 lastLineStart = current;
2225 const Value::ObjectValues::iterator& current)
2226 : current_(current), isNull_(false) {}
2331 const Value::ObjectValues::iterator& current)
2332 : ValueIteratorBase(current) {}
2350 ValueIterator::ValueIterator(const Value::ObjectValues::iterator& current)
2351 : ValueIteratorBase(current) {}
3814 const char* current = path.c_str();
3815 const char* end = current + path.length();
3817 while (current != end) {
3818 if (*current == '[') {
3819 ++current;
3820 if (*current == '%')
3824 for (; current != end && *current >= '0' && *current <= '9'; ++current)
3825 index = index * 10 + ArrayIndex(*current - '0');
3828 if (current == end || *current++ != ']')
3829 invalidPath(path, int(current - path.c_str()));
3830 } else if (*current == '%') {
3832 ++current;
3833 } else if (*current == '.') {
3834 ++current;
3836 const char* beginName = current;
3837 while (current != end && !strchr("[.", *current))
3838 ++current;
3839 args_.push_back(std::string(beginName, current));
4013 char* current = buffer + sizeof(buffer);
4017 uintToString(LargestUInt(value), current);
4019 *--current = '-';
4020 assert(current >= buffer);
4021 return current;
4026 char* current = buffer + sizeof(buffer);
4027 uintToString(value, current);
4028 assert(current >= buffer);
4029 return current;