diff options
| author | Vasco <[email protected]> | 2026-08-24 00:56:24 +0100 |
|---|---|---|
| committer | Vasco <[email protected]> | 2026-08-24 00:56:24 +0100 |
| commit | 5dc2716abd43166cd65133625f408ad36a6623b3 (patch) | |
| tree | 19d89b838206b6bb11cc0b9f88311d855999d447 /Podium/p_string.h | |
| parent | dc96fcd771bea09d726a760266739906e95c09a6 (diff) | |
Peak 0.4.0 and Draw
Diffstat (limited to 'Podium/p_string.h')
| -rw-r--r-- | Podium/p_string.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Podium/p_string.h b/Podium/p_string.h deleted file mode 100644 index 5c4077b..0000000 --- a/Podium/p_string.h +++ /dev/null @@ -1,38 +0,0 @@ -typedef struct { - const char *cstr; - u32 len; -} P_StringView; - -typedef struct { - P_StringView sv; -} P_StringBuilder; - -/* Classic C string functions */ -PODEF char* p_find_char(char *buf, char needle); -PODEF bool p_strcmp(const char *a, const char *b); -PODEF int p_strlen(const char *a); -PODEF int p_strtoi(const char *str); -PODEF char* p_strtok(const char *str, char c); - -/* String views */ -PODEF P_StringView p_strview(const char *cstr); -PODEF void p_strview_chop_left(P_StringView *sv, u32 n); -PODEF void p_strview_chop_right(P_StringView *sv, u32 n); -PODEF P_StringView p_strview_chop_delim(P_StringView *sv, char delim); -PODEF P_StringView p_strview_chop_type(P_StringView *sv, int(*istype)(int)); -PODEF void p_strview_trim_left(P_StringView *sv); -PODEF void p_strview_trim_right(P_StringView *sv); -PODEF void p_strview_trim(P_StringView *sv); - -/* Classification */ -PODEF int p_is_space(int c); -PODEF int p_is_digit(int c); -PODEF int p_is_alpha(int c); -PODEF int p_is_alnum(int c); -PODEF int p_is_upper(int c); -PODEF int p_is_lower(int c); -PODEF int p_is_hex(int c); - -/* Transformation */ -PODEF int p_to_lower(int c); -PODEF int p_to_upper(int c); |
