|
| template<typename T > |
| QString | arrayToString (T const *arr, size_t size, QString const &sep=" ") |
| | Convert a given array with specified number of elements to a string representation. More...
|
| |
| open_iA_Core_API 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...
|
| |
| open_iA_Core_API QString | greatestCommonPrefix (QString const &str1, QString const &str2) |
| |
| open_iA_Core_API int | greatestCommonPrefixLength (QString const &str1, QString const &str2) |
| | Find the (length of the) greatest common prefix of the two given strings. More...
|
| |
| open_iA_Core_API QString | greatestCommonSuffix (QString const &str1, QString const &str2) |
| |
| open_iA_Core_API int | greatestCommonSuffixLength (QString const &str1, QString const &str2) |
| |
| template<template< typename... > class Container, typename Element > |
| QString | joinAsString (Container< Element > const &vec, QString const &joinStr) |
| | join an iterable collection of numeric elements to a string More...
|
| |
| open_iA_Core_API QString | padOrTruncate (QString const &str, int size) |
| | Pads or truncates the given string to the given size. More...
|
| |
| open_iA_Core_API QString | quoteString (QString const &str) |
| |
| open_iA_Core_API QStringList | splitPossiblyQuotedString (QString const &str) |
| | split a string at the space characters, while correctly treating quoted elements More...
|
| |
| template<typename T > |
| bool | stringToArray (QString const &str, T *arr, int expectedSize, QString const &sep=" ") |
| | Convert a given string representation to an array of given type with given number of elements. More...
|
| |
| open_iA_Core_API QString | stripHTML (QString const &html) |
| | strip HTML tags from the given string More...
|
| |
template<template< typename... > class Container, typename Element >
| QString joinAsString |
( |
Container< Element > const & |
vec, |
|
|
QString const & |
joinStr |
|
) |
| |
join an iterable collection of numeric elements to a string
works similar to QString::join, but on arbitrary iterable collection types containing items which can be converted to QString via QString::number.
- Parameters
-
| vec | the collection of elements to be joined |
| joinStr | the string to be used in between the elements of the string |
- Returns
- a string joining all elements of the given collection together
| open_iA_Core_API 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