Mercurial
comparison dowa/dowa.h @ 96:70401cf61e97
[Seobeo] Added logging.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 02 Jan 2026 19:16:17 -0800 |
| parents | 655ea0b661fd |
| children | a2720eac50ce |
comparison
equal
deleted
inserted
replaced
| 95:b51f8cce9170 | 96:70401cf61e97 |
|---|---|
| 4 #include <stdio.h> // printfs... | 4 #include <stdio.h> // printfs... |
| 5 #include <string.h> // strdup, strlen, memcmp, memcpy | 5 #include <string.h> // strdup, strlen, memcmp, memcpy |
| 6 #include <stdlib.h> // malloc, free, realloc | 6 #include <stdlib.h> // malloc, free, realloc |
| 7 #include <assert.h> // mostly for TODO | 7 #include <assert.h> // mostly for TODO |
| 8 #include <stddef.h> // size_t | 8 #include <stddef.h> // size_t |
| 9 | |
| 10 #include <math.h> // I am not re-writing stuff I guess... | |
| 11 | |
| 12 #include <sys/stat.h> | |
| 13 #include <limits.h> | |
| 14 | 9 |
| 15 #include "dowa_internal.h" | 10 #include "dowa_internal.h" |
| 16 | 11 |
| 17 // DLAPI macro for DLL export/import | 12 // DLAPI macro for DLL export/import |
| 18 #ifndef DLAPI | 13 #ifndef DLAPI |
| 200 DLAPI void dowa__hashmap_free(void *p_map); | 195 DLAPI void dowa__hashmap_free(void *p_map); |
| 201 DLAPI size_t dowa__hashmap_count(void *p_map); | 196 DLAPI size_t dowa__hashmap_count(void *p_map); |
| 202 | 197 |
| 203 // --- String Manipulation --- // | 198 // --- String Manipulation --- // |
| 204 | 199 |
| 205 DLAPI char *Dowa_String_Slice(char *from, size_t start, size_t end, Dowa_Arena *p_arena); | 200 DLAPI char *Dowa_String_Slice(char *from, size_t start, size_t end, Dowa_Arena *p_arena); |
| 206 DLAPI char **Dowa_String_Split(char *from, char *token, int32 from_length, int32 token_length, Dowa_Arena *p_arena); | 201 DLAPI char **Dowa_String_Split(char *from, char *token, int32 from_length, int32 token_length, Dowa_Arena *p_arena); |
| 207 DLAPI char *Dowa_String_Copy_Arena(char *from, Dowa_Arena *p_arena); | 202 DLAPI char *Dowa_String_Copy_Arena(char *from, Dowa_Arena *p_arena); |
| 208 DLAPI int32 Dowa_String_Pos_Find(const char *p_from, const char *p_value, const size_t from_length, const size_t value_length); | 203 DLAPI int32 Dowa_String_Pos_Find(const char *p_from, const char *p_value, const size_t from_length, const size_t value_length); |
| 209 DLAPI char *Dowa_String_Find(const char *p_from, const char *p_value, const size_t from_length, const size_t value_length); | 204 DLAPI char *Dowa_String_Find(const char *p_from, const char *p_value, const size_t from_length, const size_t value_length); |
| 210 DLAPI int32 Dowa_String_Pos_Find_Char(const char *p_from, int c, int32 from_length); | 205 DLAPI int32 Dowa_String_Pos_Find_Char(const char *p_from, int c, int32 from_length); |
| 211 DLAPI char *Dowa_String_Find_Char(const char *p_from, int c, int32 from_length); | 206 DLAPI char *Dowa_String_Find_Char(const char *p_from, int c, int32 from_length); |
| 212 DLAPI char *Dowa_String_UUID(uint32 seed, void *buffer); | 207 DLAPI char *Dowa_String_UUID(uint32 seed, void *buffer); |