#pragma once #include "types.hh" #include #include namespace nix { class Regex { public: Regex(const string & pattern); ~Regex(); bool matches(const string & s); private: regex_t preg; string showError(int err); }; }