From cb95e397b887f9cda577dd89616d815cd8b2bd2a Mon Sep 17 00:00:00 2001 From: steven-na Date: Mon, 17 Aug 2026 13:11:55 -0700 Subject: slight API changes --- src/string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.h') diff --git a/src/string.h b/src/string.h index 14e3c8a..e3f74cf 100644 --- a/src/string.h +++ b/src/string.h @@ -115,9 +115,9 @@ static inline void sv_reset_right(strng_view_t *sv) { sv->end = sv->max; } static inline void sv_reset_left(strng_view_t *sv) { sv->start = 0; } // Returns -1 if not found, otherwise distance from sv->start to beginning of needle -i32 sv_contains_simd(strng_view_t const *sv, char const *needle); +i32 sv_find_substr(strng_view_t const *sv, char const *needle); // Returns -1 if not found, otherwise distance from sv->start -i32 sv_contains_c_simd(strng_view_t const *sv, char n); +i32 sv_find_char(strng_view_t const *sv, char n); b32 sv_starts_with(strng_view_t const *sv, char const *prefix); b32 sv_ends_with(strng_view_t const *sv, char const *suffix); -- cgit v1.2.3