D11552: [WIP] Handle CJK characters

Christoph Feck noreply at phabricator.kde.org
Thu Mar 22 22:38:02 UTC 2018


cfeck added inline comments.

INLINE COMMENTS

> characterrangescjk.cpp:41
> +        if (c.isLetter() && m_graphemeWords.contains(c.script())) {
> +            result << c;
> +        }

To add a uint to a QStringList, convert the uint character to a QString. Either manually compose the surrogates (faster, but uglier code), or use QString::fromUcs4() (slower, but nicer to read).

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D11552

To: michaelh, hein, cfeck
Cc: bruns, lbeltrame, #frameworks, alexeymin, cfeck, ashaposhnikov, michaelh, astippich, spoorun, nicolasfella, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180322/45b539c9/attachment.html>


More information about the Kde-frameworks-devel mailing list