21 lines
No EOL
419 B
C++
21 lines
No EOL
419 B
C++
#pragma once
|
|
|
|
#include <hyprutils/memory/UniquePtr.hpp>
|
|
|
|
//NOLINTNEXTLINE
|
|
namespace re2 {
|
|
class RE2;
|
|
};
|
|
|
|
class CRuleRegexContainer {
|
|
public:
|
|
CRuleRegexContainer() = default;
|
|
|
|
CRuleRegexContainer(const std::string& regex);
|
|
|
|
bool passes(const std::string& str) const;
|
|
|
|
private:
|
|
Hyprutils::Memory::CUniquePointer<re2::RE2> regex;
|
|
bool negative = false;
|
|
}; |