mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
23 lines
267 B
C++
23 lines
267 B
C++
|
#pragma once
|
||
|
|
||
|
#include "types.hh"
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
#include <regex.h>
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
class Regex
|
||
|
{
|
||
|
public:
|
||
|
Regex(const string & pattern);
|
||
|
~Regex();
|
||
|
bool matches(const string & s);
|
||
|
|
||
|
private:
|
||
|
regex_t preg;
|
||
|
string showError(int err);
|
||
|
};
|
||
|
|
||
|
}
|