qBittorrent
|
Functions | |
QString | wildcardToRegexPattern (const QString &pattern) |
template<typename T > | |
T | unquote (const T &str, const QString "es=QChar('"')) |
std::optional< bool > | parseBool (const QString &string) |
std::optional< int > | parseInt (const QString &string) |
std::optional< double > | parseDouble (const QString &string) |
QString | join (const QList< QStringView > &strings, QStringView separator) |
QString | fromDouble (double n, int precision) |
template<typename T , typename std::enable_if_t< std::is_enum_v< T >, int > = 0> | |
QString | fromEnum (const T &value) |
template<typename T , typename std::enable_if_t< std::is_enum_v< T >, int > = 0> | |
T | toEnum (const QString &serializedValue, const T &defaultValue) |
QString Utils::String::fromDouble | ( | double | n, |
int | precision | ||
) |
Definition at line 44 of file string.cpp.
Referenced by TorrentContentModelItem::displayData(), TransferListModel::displayValue(), Utils::Misc::friendlyUnit(), anonymous_namespace{synccontroller.cpp}::getTransferInfo(), PropertiesWidget::loadDynamicData(), PreviewListDelegate::paint(), StatsDialog::update(), and PeerListWidget::updatePeer().
QString Utils::String::fromEnum | ( | const T & | value | ) |
Definition at line 67 of file string.h.
References anonymous_namespace{preferences.cpp}::value().
Referenced by anonymous_namespace{rss_autodownloadrule.cpp}::contentLayoutToJsonValue(), AppController::preferencesAction(), anonymous_namespace{torrentfileswatcher.cpp}::serializeAddTorrentParams(), BitTorrent::BencodeResumeDataStorage::Worker::store(), BitTorrent::DBResumeDataStorage::Worker::store(), SettingsStorage::storeValue(), and anonymous_namespace{upgrade.cpp}::upgradeTorrentContentLayout().
QString Utils::String::join | ( | const QList< QStringView > & | strings, |
QStringView | separator | ||
) |
Definition at line 102 of file string.cpp.
Referenced by nova3.novaprinter::anySizeToBytes(), nova3.nova2::displayCapabilities(), nova3.nova2::engines_to_xml(), BitTorrent::TorrentImpl::handleFileRenamedAlert(), nova3.helpers::htmlentitydecode(), nova3.nova2::initialize_engines(), nova3.nova2::main(), nova3.novaprinter::prettyPrinter(), and nova3.helpers::retrieve_url().
std::optional< bool > Utils::String::parseBool | ( | const QString & | string | ) |
Definition at line 72 of file string.cpp.
Referenced by TorrentsController::addAction(), TorrentsController::createCategoryAction(), TorrentsController::deleteAction(), TorrentsController::editCategoryAction(), SearchController::enablePluginAction(), TorrentsController::infoAction(), RSSController::itemsAction(), LogController::mainAction(), TorrentsController::setAutoManagementAction(), TorrentsController::setForceStartAction(), and TorrentsController::setSuperSeedingAction().
std::optional< double > Utils::String::parseDouble | ( | const QString & | string | ) |
Definition at line 92 of file string.cpp.
Referenced by TorrentsController::addAction().
std::optional< int > Utils::String::parseInt | ( | const QString & | string | ) |
Definition at line 82 of file string.cpp.
Referenced by TorrentsController::addAction(), and Http::RequestParser::doParse().
T Utils::String::toEnum | ( | const QString & | serializedValue, |
const T & | defaultValue | ||
) |
Definition at line 77 of file string.h.
References anonymous_namespace{preferences.cpp}::value().
Referenced by TorrentsController::addAction(), anonymous_namespace{rss_autodownloadrule.cpp}::jsonValueToContentLayout(), BitTorrent::BencodeResumeDataStorage::loadTorrentResumeData(), and AppController::setPreferencesAction().
T Utils::String::unquote | ( | const T & | str, |
const QString & | quotes = QChar('"') |
||
) |
Definition at line 45 of file string.h.
Referenced by anonymous_namespace{webapplication.cpp}::parseCookie(), Http::RequestParser::parseFormData(), Http::RequestParser::parsePostMessage(), and anonymous_namespace{cmdoptions.cpp}::StringOption::value().
QString Utils::String::wildcardToRegexPattern | ( | const QString & | pattern | ) |
Definition at line 57 of file string.cpp.
Referenced by TransferListWidget::applyNameFilter(), RSS::AutoDownloadRule::cachedRegex(), SearchJobWidget::filterSearchResults(), PropertiesWidget::filterText(), AutomatedRssDownloader::updateMustLineValidity(), AutomatedRssDownloader::updateMustNotLineValidity(), and WebApplication::validateHostHeader().