cfeck added inline comments. INLINE COMMENTS
> characterrangescjk.cpp:35 > + for (int i = 0; i < text.length(); i++) { > + const QChar& c = text.at(i); > + if (m_graphemeWords.contains(c.script()) && c.isLetter()) { Add surrogate pair handling. Basic outline: uint c = text.at(i); if (QChar::isSurrogate(c)) { c = QChar::surrogateToUcs4(c, text.at(++i)); } if (QChar::isLetter(c) ... You would need to add 'i' bounds checking, and verifying that you are indeed seeing a valid pair. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D11552 To: michaelh, hein Cc: bruns, lbeltrame, #frameworks, alexeymin, cfeck, ashaposhnikov, michaelh, astippich, spoorun, nicolasfella, ngraham