QRegExp: fix \i \I \c \C \p \P escape sequences
authorGiuseppe D'Angelo <dangelog@gmail.com>
Wed, 29 Feb 2012 00:02:53 +0000 (00:02 +0000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 23:09:57 +0000 (00:09 +0100)
commiteafc667136c28fdde28d5dbc775ad978f888aa71
tree084ab3c08b0e0c4a5d0cefb7a829b409f7fc2bd1
parentf885a526acbb2d5fd15fe76478bf3faef1570aec
QRegExp: fix \i \I \c \C \p \P escape sequences

Those escape sequences have a special meaning in the XML Schema 1.1
regular expressions, but not in Perl-compatible ones.

An escape sequence that has no special meaning should match the
escaped character itself; this patch fixes QRegExp's behaviour in
that regard (previously, it added a character class matching
nothing).

Change-Id: I983f923baa7c2ec19938b96353f3a205e6c06d58
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qregexp.cpp
tests/auto/corelib/tools/qregexp/tst_qregexp.cpp