diff options
| author | WormHeamer | 2026-01-01 21:37:44 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-01 21:37:44 -0500 |
| commit | 3b48035f5b9475293ff614c2d5193cf525e55a44 (patch) | |
| tree | 7ebac8e75ff462b30fd09614ad7b3b8558b08d6e /regex.h | |
| parent | 4853268e16df1789541ea27586c7a4ec8c3786cb (diff) | |
make regex line ends more consistent across chunks
Diffstat (limited to 'regex.h')
| -rw-r--r-- | regex.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
