KItinerary
stringutil.cpp
36 else if (n.decompositionTag() == QChar::Compat && n.isLetter() && n.script() == QChar::Script_Latin) {
static QString resolveEntities(const QString &text)
bool startsWithIgnoreSpace(const QByteArray &data, const char *pattern)
Same as QByteArray::startsWith, but ignoring leading whitespaces.
Definition stringutil.cpp:195
QString clean(const QString &s)
Cleans up extra white spaces and XML entities from s.
Definition stringutil.cpp:154
QString normalize(QStringView str)
Strips out diacritics and converts to case-folded form.
Definition stringutil.cpp:19
QString transliterate(QStringView s)
Transliterate diacritics or other special characters.
Definition stringutil.cpp:171
float prefixSimilarity(QStringView s1, QStringView s2)
Returns how much of the prefix of two given strings are equal, in relation to the longer of the two i...
Definition stringutil.cpp:134
QStringView betterString(QStringView lhs, QStringView rhs)
Assuming both sides are describing the same thing, this tries to find the "better" string.
Definition stringutil.cpp:79
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
iterator begin()
iterator end()
Canonical
Script_Latin
QString & append(QChar ch)
const QChar at(qsizetype position) const const
QString fromUtf8(QByteArrayView str)
void push_back(QChar ch)
void reserve(qsizetype size)
QString simplified() const const
const_iterator begin() const const
bool empty() const const
const_iterator end() const const
bool isEmpty() const const
qsizetype size() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.