summaryrefslogtreecommitdiff
path: root/include/strops.hpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-04 17:18:58 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-04 17:18:58 +0200
commit83cbf0e4a142ab2c57fd4fdfc056517b7149828b (patch)
treead12636f5e01e8a70dcefcee01ee9f84f4f0edab /include/strops.hpp
parentf9f1955748a3b369f0a015405af131c9b6e3285c (diff)
namespace administration reader + writer
Diffstat (limited to 'include/strops.hpp')
-rw-r--r--include/strops.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/strops.hpp b/include/strops.hpp
index ec3dcdd..5ecc99a 100644
--- a/include/strops.hpp
+++ b/include/strops.hpp
@@ -26,9 +26,10 @@ namespace strops {
void replace_int32(char *buf, size_t buf_size, const char *search, int32_t number);
void replace_int64(char *buf, size_t buf_size, const char *search, int64_t number);
void replace_float(char *buf, size_t buf_size, const char *search, float number, int decimals);
- bool prefix(const char *pre, const char *str);
- char* get_json_value(const char *json, const char *key, char *out, size_t out_size, int nth = 0);
+ bool is_prefixed(const char *pre, const char *str);
char* get_filename(const char* path);
+
+ char* get_json_value(const char *json, const char *key, char *out, size_t out_size, int nth = 0);
char* prep_str_for_json(const char *input, size_t buffer_size);
char* unprep_str_from_json(char *input);