From b05b98df7544d02387f583ca5434f33f3e9cb471 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Tue, 18 Oct 2016 20:21:21 +0200 Subject: replace own regex class with std::regex --- src/libutil/regex.hh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/libutil/regex.hh (limited to 'src/libutil/regex.hh') 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 -#include - -#include - -namespace nix { - -MakeError(RegexError, Error) - -class Regex -{ -public: - Regex(const string & pattern, bool subs = false); - ~Regex(); - bool matches(const string & s); - typedef std::map Subs; - bool matches(const string & s, Subs & subs); - -private: - unsigned nrParens; - regex_t preg; - string showError(int err); -}; - -} -- cgit v1.2.3