Commit c19c1052 authored by Volker Krause's avatar Volker Krause
Browse files

Port StringUtil::normalizer to QStringView

parent 68a51203
......@@ -27,7 +27,7 @@ QChar StringUtil::normalize(QChar c)
return n;
QString StringUtil::normalize(const QString &str)
QString StringUtil::normalize(QStringView str)
QString out;
......@@ -23,7 +23,7 @@ namespace StringUtil
/** Strips out diacritics and converts to case-folded form.
* @internal only exported for unit tests
KITINERARY_EXPORT QString normalize(const QString &str);
KITINERARY_EXPORT QString normalize(QStringView str);
/** Assuming both sides are describing the same thing, this tries to find the "better" string.
* That is, prefer the one that didn't lose casing/unicode/etc in previous processing.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment