|
|
@@ -444,7 +444,6 @@ int regex_free(regex_t * const regex) { |
|
|
|
// ----------------- |
|
|
|
static bool catch_(const regex_t * const regex, |
|
|
|
int * const state) { |
|
|
|
|
|
|
|
for (size_t i = 0; i < regex->catch_table.element_count; i++){ |
|
|
|
const offshoot_t * const offshoot = *(offshoot_t**)vector_get(®ex->catch_table, i); |
|
|
|
if (offshoot->in == *state) { |
|
|
@@ -458,8 +457,7 @@ static bool catch_(const regex_t * const regex, |
|
|
|
static int regex_assert(const regex_t * const regex, |
|
|
|
const char * const string, |
|
|
|
int state, |
|
|
|
int width) { |
|
|
|
|
|
|
|
int * width) { |
|
|
|
for (const char * s = string; *s != '\00'; s++) { |
|
|
|
// delta |
|
|
|
for (size_t i = 0; i < regex->delta_table.element_count; i++) { |
|
|
@@ -485,7 +483,6 @@ static int regex_assert(const regex_t * const regex, |
|
|
|
|
|
|
|
int regex_match( regex_t * regex, |
|
|
|
const char * const string) { |
|
|
|
|
|
|
|
if (regex == NULL) { |
|
|
|
return false; |
|
|
|
} |
|
|
@@ -501,4 +498,3 @@ bool regex_search( regex_t * regex, |
|
|
|
|
|
|
|
return (bool)regex_match(regex, string); |
|
|
|
} |
|
|
|
|