MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / removeThePrefix

Function removeThePrefix

launcher/minecraft/mod/Resource.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

compareMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected