summaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/regex.h b/regex.h
index c21c708..8f95319 100644
--- a/regex.h
+++ b/regex.h
@@ -92,6 +92,7 @@ typedef enum {
RE_SEARCH_FIRST_CHUNK = 1,
RE_SEARCH_LAST_CHUNK = 2,
RE_SEARCH_MID_MATCH = 4,
+ RE_SEARCH_WAS_NEWLINE = 8,
} ReSearchFlags;
typedef struct {
@@ -124,6 +125,7 @@ const char *re_comp_strerror(ReCompErr err);
void re_search_start(ReSearch *s, RegEx *re, Arena *a);
void re_search_chunk(ReSearch *s, const char *buf, size_t n);
+void re_search_first_chunk(ReSearch *s);
void re_search_last_chunk(ReSearch *s);
int re_search_match(ReSearch *s, ReMatch *m);
int re_search_match_at_start(ReSearch *s, ReMatch *m);