| 51 | } |
| 52 | |
| 53 | static void removeThePrefix(QString& string) |
| 54 | { |
| 55 | QRegularExpression regex(QStringLiteral("^(?:the|teh) +"), QRegularExpression::CaseInsensitiveOption); |
| 56 | string.remove(regex); |
| 57 | string = string.trimmed(); |
| 58 | } |
| 59 | |
| 60 | std::pair<int, bool> Resource::compare(const Resource& other, SortType type) const |
| 61 | { |