diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-10-19T14·32+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-10-19T14·32+0200 |
commit | 795d9b866881871419651081eb112f23b2f5bff5 (patch) | |
tree | e51077f7170bb04bb003fdadcd0e462bc52d9776 /src/libutil/regex.hh | |
parent | 19c278de89fa60844fa1ea2b3c2abfa639f75b39 (diff) | |
parent | c935e8eeaf3ef5f49f66468ba551fd016fd76aa0 (diff) |
Merge branch 'regex' of https://github.com/groxxda/nix
Diffstat (limited to 'src/libutil/regex.hh')
-rw-r--r-- | src/libutil/regex.hh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/libutil/regex.hh b/src/libutil/regex.hh deleted file mode 100644 index 53e31f4edc4a..000000000000 --- a/src/libutil/regex.hh +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "types.hh" - -#include <sys/types.h> -#include <regex.h> - -#include <map> - -namespace nix { - -MakeError(RegexError, Error) - -class Regex -{ -public: - Regex(const string & pattern, bool subs = false); - ~Regex(); - bool matches(const string & s); - typedef std::map<unsigned int, string> Subs; - bool matches(const string & s, Subs & subs); - -private: - unsigned nrParens; - regex_t preg; - string showError(int err); -}; - -} |