diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-17 13:11:55 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-17 13:11:55 -0700 |
| commit | cb95e397b887f9cda577dd89616d815cd8b2bd2a (patch) | |
| tree | 5a9118d2c6a959f68df61aec3658db88af9fb7ad /src/string.h | |
| parent | 37af20d053624e0cc2e5245ec2f6eba7a55158be (diff) | |
slight API changes
Diffstat (limited to 'src/string.h')
| -rw-r--r-- | src/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |