qBittorrent
string.h File Reference
#include <optional>
#include <QChar>
#include <QMetaEnum>
#include <QString>
#include <Qt>
#include <QtContainerFwd>
Include dependency graph for string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Utils
 
 Utils::String
 

Functions

QString Utils::String::wildcardToRegexPattern (const QString &pattern)
 
template<typename T >
Utils::String::unquote (const T &str, const QString &quotes=QChar('"'))
 
std::optional< bool > Utils::String::parseBool (const QString &string)
 
std::optional< int > Utils::String::parseInt (const QString &string)
 
std::optional< double > Utils::String::parseDouble (const QString &string)
 
QString Utils::String::join (const QList< QStringView > &strings, QStringView separator)
 
QString Utils::String::fromDouble (double n, int precision)
 
template<typename T , typename std::enable_if_t< std::is_enum_v< T >, int > = 0>
QString Utils::String::fromEnum (const T &value)
 
template<typename T , typename std::enable_if_t< std::is_enum_v< T >, int > = 0>
Utils::String::toEnum (const QString &serializedValue, const T &defaultValue)