|
| QString | dblToStringWithUnits (double value) |
| | returns the value converted to string, with units (K, M, G, T, P) applied for every 10³ factor over 1000 More...
|
| |
| QString | greatestCommonPrefix (QString const &str1, QString const &str2) |
| |
| int | greatestCommonPrefixLength (QString const &str1, QString const &str2) |
| | Find the (length of the) greatest common prefix of the two given strings. More...
|
| |
| QString | greatestCommonSuffix (QString const &str1, QString const &str2) |
| |
| int | greatestCommonSuffixLength (QString const &str1, QString const &str2) |
| |
| QString | padOrTruncate (QString const &str, int size) |
| | Pads or truncates the given string to the given size. More...
|
| |
| QString | quoteString (QString const &str) |
| |
| QStringList | splitPossiblyQuotedString (QString const &str) |
| | split a string at the space characters, while correctly treating quoted elements More...
|
| |
| QString | stripHTML (QString const &html) |
| | strip HTML tags from the given string More...
|
| |
| QStringList splitPossiblyQuotedString |
( |
QString const & |
str | ) |
|
split a string at the space characters, while correctly treating quoted elements
Example: the string '"a rabbit" and "a horse"' would be split into three elements: "a rabbit", "and", "a horse" (the quotes are stripped from the elements). Note that only the double-quote character is considered as a quote by this function.
- Parameters
-
- Returns
- a list of strings split up at the whitespaces