diff options
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); |
