summaryrefslogtreecommitdiff
path: root/include/strops.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/strops.hpp')
-rw-r--r--include/strops.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/strops.hpp b/include/strops.hpp
index 5ecc99a..3a85543 100644
--- a/include/strops.hpp
+++ b/include/strops.hpp
@@ -16,15 +16,16 @@
#pragma once
-#include <stdint.h>
+#include "config.hpp"
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);
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, int32_t number);
- void replace_int64(char *buf, size_t buf_size, const char *search, int64_t number);
+ 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);