summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-03 16:52:01 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-03 19:22:38 (GMT)
commit65d4bca69eeceef7af247f3683f8844e07fce771 (patch)
tree1b1db55b7f3d35d98804ef2864dc5f1343dab5b0
parent09e700f1d2a15ea4a596045496674c4d2521f5f8 (diff)
downloadQt-65d4bca69eeceef7af247f3683f8844e07fce771.zip
Qt-65d4bca69eeceef7af247f3683f8844e07fce771.tar.gz
Qt-65d4bca69eeceef7af247f3683f8844e07fce771.tar.bz2
QCSSScanner: really skip toLower() when tokenizing the input.
Missing from e3c62dc1def9270761ca63c73ae76fdca9d61582 is the actual change to the (generated) scanner, namely to skip lowercase conversion for each and every character.
-rw-r--r--src/gui/text/qcssscanner.cpp2
-rw-r--r--util/lexgen/css2-simplified.lexgen1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qcssscanner.cpp b/src/gui/text/qcssscanner.cpp
index 06a13de..5bbf638 100644
--- a/src/gui/text/qcssscanner.cpp
+++ b/src/gui/text/qcssscanner.cpp
@@ -46,7 +46,7 @@ public:
QCssScanner_Generated(const QString &inp);
inline QChar next() {
- return (pos < input.length()) ? input.at(pos++).toLower() : QChar();
+ return (pos < input.length()) ? input.at(pos++) : QChar();
}
int handleCommentStart();
int lex();
diff --git a/util/lexgen/css2-simplified.lexgen b/util/lexgen/css2-simplified.lexgen
index 299ff5e..53facb1 100644
--- a/util/lexgen/css2-simplified.lexgen
+++ b/util/lexgen/css2-simplified.lexgen
@@ -1,4 +1,5 @@
[Options]
+case-sensitive
classname = QCssScanner_Generated
[Code Generator Options]