Changeset View
Changeset View
Standalone View
Standalone View
src/engine/termgenerator.cpp
Context not available. | |||||
57 | 57 | | |||
---|---|---|---|---|---|
58 | QString str = text.mid(start, end - start); | 58 | QString str = text.mid(start, end - start); | ||
59 | 59 | | |||
60 | // Get the string ready for saving | 60 | // Remove all accents. It is important to call toLower after normalization, | ||
61 | str = str.toLower(); | 61 | // since some exotic unicode symbols can remain uppercase otherwise | ||
62 | 62 | const QString denormalized = str.normalized(QString::NormalizationForm_KD).toLower(); | |||
63 | // Remove all accents | | |||
64 | const QString denormalized = str.normalized(QString::NormalizationForm_KD); | | |||
65 | 63 | | |||
66 | QString cleanString; | 64 | QString cleanString; | ||
67 | cleanString.reserve(denormalized.size()); | 65 | cleanString.reserve(denormalized.size()); | ||
Context not available. |