diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-28 20:28:40 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-28 20:28:40 +0200 |
| commit | 485e5ebf340857db07b1c8ecb5c63dcf3a908377 (patch) | |
| tree | ceca7fd0e20e20b4452c2ecc67563546a1e23730 /include | |
| parent | a2299b0bae21c8f05f091732a78fc250cbd5e016 (diff) | |
move string function out of openAI.cpp into strops.cpp
Diffstat (limited to 'include')
| -rw-r--r-- | include/strops.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/strops.hpp b/include/strops.hpp index 68a927e..d11f0c2 100644 --- a/include/strops.hpp +++ b/include/strops.hpp @@ -24,4 +24,8 @@ void strops_replace(char *buf, size_t buf_size, const char *search, const cha void strops_replace_int32(char *buf, size_t buf_size, const char *search, int32_t number); void strops_replace_int64(char *buf, size_t buf_size, const char *search, int64_t number); void strops_replace_float(char *buf, size_t buf_size, const char *search, float number, int decimals); -bool strops_prefix(const char *pre, const char *str);
\ No newline at end of file +bool strops_prefix(const char *pre, const char *str); +char* strops_get_json_value(const char *json, const char *key, char *out, size_t out_size, int nth = 0); +char* strops_get_filename(const char* path); +char* strops_prep_str_for_json(const char *input, size_t buffer_size); +char* strops_unprep_str_from_json(char *input);
\ No newline at end of file |
