Lines Matching +refs:current +refs:line
586 Location current = token.start_; in decodeNumber() local
587 bool isNegative = *current == '-'; in decodeNumber()
589 ++current; in decodeNumber()
594 while ( current < token.end_ ) in decodeNumber()
596 Char c = *current++; in decodeNumber()
607 current != token.end_ || in decodeNumber()
680 Location current = token.start_ + 1; // skip '"' in decodeString() local
682 while ( current != end ) in decodeString()
684 Char c = *current++; in decodeString()
689 if ( current == end ) in decodeString()
690 return addError( "Empty escape sequence in string", token, current ); in decodeString()
691 Char escape = *current++; in decodeString()
705 if ( !decodeUnicodeCodePoint( token, current, end, unicode ) ) in decodeString()
711 return addError( "Bad escape sequence in string", token, current ); in decodeString()
724 Location ¤t, in decodeUnicodeCodePoint() argument
729 if ( !decodeUnicodeEscapeSequence( token, current, end, unicode ) ) in decodeUnicodeCodePoint()
734 if (end - current < 6) in decodeUnicodeCodePoint()
735 … addError( "additional six characters expected to parse unicode surrogate pair.", token, current ); in decodeUnicodeCodePoint()
737 if (*(current++) == '\\' && *(current++)== 'u') in decodeUnicodeCodePoint()
739 if (decodeUnicodeEscapeSequence( token, current, end, surrogatePair )) in decodeUnicodeCodePoint()
747 …xpecting another \\u token to begin the second half of a unicode surrogate pair", token, current ); in decodeUnicodeCodePoint()
754 Location ¤t, in decodeUnicodeEscapeSequence() argument
758 if ( end - current < 4 ) in decodeUnicodeEscapeSequence()
759 … return addError( "Bad unicode escape sequence in string: four digits expected.", token, current ); in decodeUnicodeEscapeSequence()
763 Char c = *current++; in decodeUnicodeEscapeSequence()
772 …n addError( "Bad unicode escape sequence in string: hexadecimal digit expected.", token, current ); in decodeUnicodeEscapeSequence()
837 int &line, in getLocationLineAndColumn() argument
840 Location current = begin_; in getLocationLineAndColumn() local
841 Location lastLineStart = current; in getLocationLineAndColumn()
842 line = 0; in getLocationLineAndColumn()
843 while ( current < location && current != end_ ) in getLocationLineAndColumn()
845 Char c = *current++; in getLocationLineAndColumn()
848 if ( *current == '\n' ) in getLocationLineAndColumn()
849 ++current; in getLocationLineAndColumn()
850 lastLineStart = current; in getLocationLineAndColumn()
851 ++line; in getLocationLineAndColumn()
855 lastLineStart = current; in getLocationLineAndColumn()
856 ++line; in getLocationLineAndColumn()
861 ++line; in getLocationLineAndColumn()
868 int line, column; in getLocationLineAndColumn() local
869 getLocationLineAndColumn( location, line, column ); in getLocationLineAndColumn()
871 sprintf( buffer, "Line %d, Column %d", line, column ); in getLocationLineAndColumn()