summaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authorWormHeamer2026-01-01 21:37:44 -0500
committerWormHeamer2026-01-01 21:37:44 -0500
commit3b48035f5b9475293ff614c2d5193cf525e55a44 (patch)
tree7ebac8e75ff462b30fd09614ad7b3b8558b08d6e /regex.h
parent4853268e16df1789541ea27586c7a4ec8c3786cb (diff)
make regex line ends more consistent across chunks
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);