mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-25 15:16:02 +00:00
22 lines
422 B
C++
22 lines
422 B
C++
#pragma once
|
|
|
|
#include "IPathMatcher.h"
|
|
#include <SeparatorPrefixTree.h>
|
|
#include <QRegularExpression>
|
|
|
|
class FSTreeMatcher : public IPathMatcher
|
|
{
|
|
public:
|
|
virtual ~FSTreeMatcher() {};
|
|
FSTreeMatcher(SeparatorPrefixTree<'/'> & tree) : m_fsTree(tree)
|
|
{
|
|
}
|
|
|
|
bool matches(const QString &string) const override
|
|
{
|
|
return m_fsTree.covers(string);
|
|
}
|
|
|
|
SeparatorPrefixTree<'/'> & m_fsTree;
|
|
};
|