optimize QChar::decomposition()
authorKonstantin Ritt <ritt.ks@gmail.com>
Mon, 23 Apr 2012 04:00:28 +0000 (07:00 +0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Apr 2012 23:57:04 +0000 (01:57 +0200)
commit5e66c35a2379099cc1ec668efc766272bc097dad
tree57f07497820a140d767a9d4221797089144bad85
parent6fb0110f972b8d9de22c7c06246b68bd7b6ebe50
optimize QChar::decomposition()

* by not using QString::fromUtf16() as we know for sure that
  the data is 'raw' UCS-2;
* it's safe to avoid a check for > UNICODE_LAST_CODEPOINT
  as GET_DECOMPOSITION_INDEX macro already does a similar check

Change-Id: Ifb660efc51c664d06733ac8ed46d54278520da06
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qchar.cpp