diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:15:55 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:15:55 +0200 |
| commit | b278d242d03ba614779243ec9e9495fc95abea3d (patch) | |
| tree | 0d3cd94a3a059b0754c61da075c7dcecc081f358 /include/strops.hpp | |
| parent | 0a2b0e347d926ac0f29c9dd0f49e00634e822d0e (diff) | |
strops format
Diffstat (limited to 'include/strops.hpp')
| -rw-r--r-- | include/strops.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/strops.hpp b/include/strops.hpp index 3a85543..5dc7368 100644 --- a/include/strops.hpp +++ b/include/strops.hpp @@ -23,10 +23,15 @@ namespace strops { size_t copy(char *dst, const char *src, size_t size); char* contains(char* a, char* b); bool equals(const char* a, const char* b); + + s32 format_va(char* s, size_t n, const char* format, va_list args); + s32 format(char* s, size_t n, const char* format, ...); + void replace(char *buf, size_t buf_size, const char *search, const char *replace); void replace_int32(char *buf, size_t buf_size, const char *search, s32 number); void replace_int64(char *buf, size_t buf_size, const char *search, s64 number); void replace_float(char *buf, size_t buf_size, const char *search, float number, int decimals); + bool is_prefixed(const char *pre, const char *str); char* get_filename(const char* path); |
