KDECore
kstringhandler.cpp
Go to the documentation of this file.
167 /*static*/ QRegExp urlEx(QLatin1String("(www\\.(?!\\.)|(fish|(f|ht)tp(|s))://)[\\d\\w\\./,:_~\\?=&;#@\\-\\+\\%\\$]+[\\d\\w/]"));
181 QString anchor = QString::fromLatin1("<a href=\"") + href + QLatin1String("\">") + href + QLatin1String("</a>");
302int KStringHandler::naturalCompare(const QString &_a, const QString &_b, Qt::CaseSensitivity caseSensitivity)
#define T
#define X
#define F
#define I
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:165
QString preProcessWrap(const QString &text)
Preprocesses the given string in order to provide additional line breaking opportunities for QTextLay...
Definition kstringhandler.cpp:453
QString lsqueeze(const QString &str, int maxlen=40)
Substitute characters at the beginning of a string by "...".
Definition kstringhandler.cpp:62
QStringList perlSplit(const QString &sep, const QString &s, int max=0)
Split a QString into a QStringList in a similar fashion to the static QStringList function in Qt,...
Definition kstringhandler.cpp:89
QString from8Bit(const char *str)
Construct QString from a c string, guessing whether it is UTF8- or Local8Bit-encoded.
Definition kstringhandler.cpp:289
bool isUtf8(const char *str)
Guess whether a string is UTF8 encoded.
Definition kstringhandler.cpp:204
int naturalCompare(const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
Does a natural comparing of the strings.
Definition kstringhandler.cpp:302
QString rsqueeze(const QString &str, int maxlen=40)
Substitute characters at the end of a string by "...".
Definition kstringhandler.cpp:80
QString csqueeze(const QString &str, int maxlen=40)
Substitute characters at the middle of a string by "...".
Definition kstringhandler.cpp:71
QString capwords(const QString &text)
Capitalizes each word in the string "hello there" becomes "Hello There" (string)
Definition kstringhandler.cpp:37
QString obscure(const QString &str)
Obscure string by using a simple symmetric encryption.
Definition kstringhandler.cpp:190
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.