aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/regex.hh
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2016-10-18 20:21:21 +0200
committerAlexander Ried <ried@mytum.de>2016-10-18 20:22:25 +0200
commitb05b98df7544d02387f583ca5434f33f3e9cb471 (patch)
tree4f2c923dc552faed3bf2ea1330d4bf68eda80471 /src/libutil/regex.hh
parentae8884b94975673e6a3338d2c5173c006b4c8d4b (diff)
replace own regex class with std::regex
Diffstat (limited to 'src/libutil/regex.hh')
-rw-r--r--src/libutil/regex.hh29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/libutil/regex.hh b/src/libutil/regex.hh
deleted file mode 100644
index 53e31f4ed..000000000
--- 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);
-};
-
-}