summaryrefslogtreecommitdiff
path: root/userland/libc/include
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-05-02 16:52:26 +0200
committerAnton Kling <anton@kling.gg>2024-05-02 18:35:47 +0200
commitad8619ae362b4b626e99b90b1b7c4d7e59125f65 (patch)
tree2d46caa903ba9435fc51012b6ddf41292ad316f7 /userland/libc/include
parentfaebb71b8a84e33f4f2b3f8f70f845011483c5c5 (diff)
sh: Use string view instead of C strings
Diffstat (limited to 'userland/libc/include')
-rw-r--r--userland/libc/include/tb/sv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/userland/libc/include/tb/sv.h b/userland/libc/include/tb/sv.h
index 6e81b0b..54ec218 100644
--- a/userland/libc/include/tb/sv.h
+++ b/userland/libc/include/tb/sv.h
@@ -21,6 +21,11 @@ struct sv sv_split_delim(const struct sv input, struct sv *rest, char delim);
struct sv sv_end_split_delim(const struct sv input, struct sv *rest,
char delim);
struct sv sv_split_space(const struct sv input, struct sv *rest);
+struct sv sv_skip_chars(const struct sv input, const char *chars);
+struct sv sv_split_function(const struct sv input, struct sv *rest,
+ int (*function)(int));
+struct sv sv_take(struct sv s, struct sv *rest, size_t n);
+struct sv sv_next(struct sv s);
int sv_isempty(struct sv s);
char sv_peek(struct sv s);
int sv_eq(struct sv a, struct sv b);