From a8b108619083c2088269ea8071c7958f277ed41f Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 27 Jul 2015 17:03:43 -0400 Subject: Rework to use the C++11 regex library Switch to using the C++11 regex library for better portability and ease of use. As an added bonus, this should make it easier to implement regex substitution. --- src/regex__FFI.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/regex__FFI.h') diff --git a/src/regex__FFI.h b/src/regex__FFI.h index 6fa9482..9d6a2c2 100644 --- a/src/regex__FFI.h +++ b/src/regex__FFI.h @@ -22,16 +22,11 @@ extern "C" { #include -typedef struct { - char* text; - void* compiled; -} uw_Regex__FFI_regex; +typedef void* uw_Regex__FFI_regex; typedef struct { char* haystack; - int succeeded; - unsigned n_matches; - regmatch_t* matches; + void* result; } uw_Regex__FFI_match; uw_Basis_bool uw_Regex__FFI_succeeded(struct uw_context*, -- cgit v1.2.3