KCoreAddons
kstringhandler.cpp
151 QStringList KStringHandler::perlSplit(const QRegularExpression &sep, const QString &str, int max)
194 static const QRegularExpression urlEx(QStringLiteral(R"((www\.(?!\.)|(fish|ftp|http|https)://[\d\w./,:_~?=&;#@\-+%$()]+))"),
332 const bool openingParens = (c == QLatin1Char('(') || c == QLatin1Char('{') || c == QLatin1Char('['));
334 const bool closingParens = (c == QLatin1Char(')') || c == QLatin1Char('}') || c == QLatin1Char(']'));
340 const bool prevIsSpace = (i == 0 || text[i - 1].isSpace() || result[result.length() - 1] == zwsp);
void append(const T &value)
bool hasNext() const const
Script_Han
QStringView right(qsizetype length) const const
QString fromUtf8(const char *str, int size)
QChar::Script script() const const
KCOREADDONS_EXPORT QString preProcessWrap(const QString &text)
Preprocesses the given string in order to provide additional line breaking opportunities for QTextLay...
Definition: kstringhandler.cpp:323
QStringRef midRef(int position, int n) const const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int count(const T &value) const const
KCOREADDONS_EXPORT int logicalLength(const QString &text)
Returns the length that reflects the density of information in the text.
Definition: kstringhandler.cpp:365
KCOREADDONS_EXPORT QString obscure(const QString &str)
Obscure string by using a simple symmetric encryption.
Definition: kstringhandler.cpp:201
QString trimmed() const const
QStringView mid(qsizetype start) const const
Q_SCRIPTABLE Q_NOREPLY void start()
bool isHighSurrogate() const const
void reserve(int size)
const QChar * unicode() const const
KCOREADDONS_EXPORT QString rsqueeze(const QString &str, int maxlen=40)
Substitute characters at the end of a string by "...".
Definition: kstringhandler.cpp:69
KCOREADDONS_EXPORT QStringList perlSplit(const QStringView sep, const QStringView str, int max)
Split a string into a QStringList in a similar fashion to the static QStringList function in Qt,...
Definition: kstringhandler.cpp:79
KCOREADDONS_EXPORT QString from8Bit(const char *str)
Construct QString from a c string, guessing whether it is UTF8- or Local8Bit-encoded.
Definition: kstringhandler.cpp:310
QStringView left(qsizetype length) const const
QRegularExpressionMatch next()
qsizetype size() const const
int matchedLength() const const
QString toString() const const
bool isUpper() const const
KCOREADDONS_EXPORT QString lsqueeze(const QString &str, int maxlen=40)
Substitute characters at the beginning of a string by "...".
Definition: kstringhandler.cpp:48
KCOREADDONS_EXPORT QString csqueeze(const QString &str, int maxlen=40)
Substitute characters at the middle of a string by "...".
Definition: kstringhandler.cpp:58
QString fromLocal8Bit(const char *str, int size)
void setPatternOptions(QRegularExpression::PatternOptions options)
int indexIn(const QString &str, int offset, QRegExp::CaretMode caretMode) const const
bool isEmpty() const const
int length() const const
const T & at(int i) const const
KCOREADDONS_EXPORT QString tagUrls(const QString &text)
This method auto-detects URLs in strings, and adds HTML markup to them so that richtext or HTML-enabl...
Definition: kstringhandler.cpp:190
QString join(const QString &separator) const const
bool isPunct() const const
UseUnicodePropertiesOption
QString & replace(int position, int n, QChar after)
QVector< uint > toUcs4() const const
KCOREADDONS_EXPORT QString capwords(const QString &text)
Capitalizes each word in the string "hello there" becomes "Hello There" (string)
Definition: kstringhandler.cpp:24
bool isEmpty() const const
QString left(int n) const const
KCOREADDONS_EXPORT bool isUtf8(const char *str)
Guess whether a string is UTF8 encoded.
Definition: kstringhandler.cpp:215
int length() const const
bool isEmpty() const const
bool isSymbol() const const
qsizetype indexOf(QChar c, qsizetype from, Qt::CaseSensitivity cs) const const
QLatin1String right(int length) const const
QRegularExpressionMatchIterator globalMatch(const QString &subject, int offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const const
QString mid(int position, int n) const const
bool isLower() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:04:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:04:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.