From 615601fb355709d611d18f878f77c993c312f6aa Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 28 Dec 2025 04:19:59 -0500 Subject: lots of features & bugfixes both --- txt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'txt.h') diff --git a/txt.h b/txt.h index 54b2146..ccc71be 100644 --- a/txt.h +++ b/txt.h @@ -46,8 +46,11 @@ TxtLoc txt_next(Txt *b, TxtLoc l); TxtLoc txt_prev(Txt *b, TxtLoc l); int txt_at_start(Txt *b, TxtLoc l); int txt_at_end(Txt *b, TxtLoc l); +int txt_before(TxtLoc a, TxtLoc b); +int txt_after(TxtLoc a, TxtLoc b); u32 txt_chr(Txt *b, TxtLoc l); u8 txt_byte(Txt *b, TxtLoc l); +u32 txt_chr_next(Txt *b, TxtLoc *l); #endif -- cgit v1.2.3