#include <string_view>
#include <vector>
#include <QByteArray>
#include <QString>
#include "mythbaseexp.h"
Go to the source code of this file.
|
| MBASE_PUBLIC bool | StringUtil::isValidUTF8 (const QByteArray &data) |
| |
| QString | StringUtil::intToPaddedString (int n, int width=2) |
| | Creates a zero padded string representation of an integer. More...
|
| |
| QString | StringUtil::indentSpaces (unsigned int level, unsigned int size=4) |
| |
| QString | StringUtil::bool_to_string (bool val) |
| | This is equivalent to QVariant(bool).toString() More...
|
| |
| MBASE_PUBLIC int | StringUtil::naturalCompare (const QString &_a, const QString &_b, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive) |
| | This method chops the input a and b into pieces of digits and non-digits (a1.05 becomes a | 1 | . More...
|
| |
| bool | StringUtil::naturalSortCompare (const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive) |
| | naturalCompare as a std::sort compatible function (ignoring the third parameter, which is never used). More...
|
| |
| MBASE_PUBLIC QString | StringUtil::formatKBytes (int64_t sizeKB, int prec=1) |
| |
| MBASE_PUBLIC QString | StringUtil::formatBytes (int64_t sizeB, int prec=1) |
| |
| std::vector< std::string_view > | StringUtil::split_sv (const std::string_view s, const std::string_view delimiter) |
| | Split a std::string_view into a std::vector of std::string_views. More...
|
| |