optimize canonicalOrderHelper() for generic case
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 10 Apr 2012 15:00:32 +0000 (18:00 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 13:57:38 +0000 (15:57 +0200)
commitf4d02ecdbf54987a0bada20fe8f8537e90c051d8
tree2394b952271da1903c43aca85a993f26246fe7a0
parent73423db31d505e4101b446554c840e933c93f7df
optimize canonicalOrderHelper() for generic case

if there is no need to swap codepoints A and B,
then we proceeding with advance to the next codepoint B
that becomes A, and some next codepoint C becomes B;
in such case we can easily skip the re-calculations for A
by using previously calculated results for B

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