optimize handling of surrogate pairs in toLower()/toUpper()
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 18 Oct 2011 15:08:13 +0000 (19:08 +0400)
committerKonstantin Ritt <ritt.ks@gmail.com>
Tue, 18 Oct 2011 15:08:13 +0000 (19:08 +0400)
commit4ef7d714dd3638e0985098c32c70e4f670c4d98a
treea707bd818fee3e2e9025a97f636bf71c3ccfca49
parentf29b81f9b36ceca6828445e0d6207c34f808dcd9
optimize handling of surrogate pairs in toLower()/toUpper()

high surrogate part never changes on upper/lower casing
(which tested explicitly in the qunicodetables generator),
thus we can copy the high surrogate part in the loop
src/corelib/tools/qstring.cpp