4#ifndef MYTHSORTHELPER_H_
5#define MYTHSORTHELPER_H_
7#include <QCoreApplication>
8 #include <QRegularExpression>
38 QString doTitle(
const QString& title)
const;
39 QString doPathname(
const QString& pathname)
const;
52 void MythSortHelperCommon(
void);
55 Qt::CaseSensitivity m_caseSensitive {Qt::CaseInsensitive};
64 QString m_prefixes {QString()};
67 QRegularExpression m_prefixesRegex {QRegularExpression()};
70 QRegularExpression m_prefixesRegex2 {QRegularExpression()};
77 QString m_exclusions {
"A to Z"};
79 QStringList m_exclList {QStringList()};
A class to consolidate all the soring functions.
bool hasPrefixes(void)
Does the language translation specify any prefixes.
QString getPrefixes(void)
MBASE_PUBLIC std::shared_ptr< MythSortHelper > getMythSortHelper(void)
Get a pointer to the MythSortHelper singleton.
MBASE_PUBLIC void resetMythSortHelper(void)
Delete the MythSortHelper singleton.