From c20422af13fb30751eaa58e8755c7a9a7fd20a50 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 12 Mar 2013 18:37:07 +0200 Subject: Move Unicode script itemization code from text engine to UnicodeTools This is still the same trivial implementation with the only difference in that that it properly handles surrogate pairs and combining marks. This temporarily makes QTextEngine::itemize() insignificatly slower due to using intermediate buffer, until refactoring is done. Change-Id: I7987d6306b0b5cdb21b837968e292dd70abfe223 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/corelib/tools/qunicodetools_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib/tools/qunicodetools_p.h') diff --git a/src/corelib/tools/qunicodetools_p.h b/src/corelib/tools/qunicodetools_p.h index 5a4f1659c4..5db3126159 100644 --- a/src/corelib/tools/qunicodetools_p.h +++ b/src/corelib/tools/qunicodetools_p.h @@ -96,6 +96,9 @@ Q_CORE_EXPORT void initCharAttributes(const ushort *string, int length, const ScriptItem *items, int numItems, QCharAttributes *attributes, CharAttributeOptions options = DefaultOptionsCompat); + +Q_CORE_EXPORT void initScripts(const ushort *string, int length, uchar *scripts); + } // namespace QUnicodeTools QT_END_NAMESPACE -- cgit v1.2.3