mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-15 15:58:29 +00:00
21 lines
419 B
C++
21 lines
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;
|
|
}; |