Special case integers and strings in lexer
authorAaron Kennedy <aaron.kennedy@nokia.com>
Fri, 22 Jul 2011 06:18:06 +0000 (16:18 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 30 Aug 2011 11:18:28 +0000 (13:18 +0200)
commitb048a40d7aab29b44d9c548292ab4b307d8d40c0
tree2c4b207e475626fbb3a464c29c6f4ab858aa6039
parent7d397be0cb6ae8f90d07903ff061d1600af15cb8
Special case integers and strings in lexer

Reduces the amount of copying for integer numbers and uses a raw
QStringRef for unescaped strings.

Change-Id: I2ad29f4c67be72495e3209081761b9a1bb503f26
Reviewed-on: http://codereview.qt.nokia.com/3773
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
src/declarative/qml/parser/qdeclarativejslexer.cpp