#ifndef str_h #define str_h #include #include struct Arena; struct Heap; uint64_t fnv1a64(uint8_t* buf, size_t size); uint64_t fnv1a64_2(uint64_t h, uint8_t* buf, size_t size); uint32_t hash_string(const char* s); int string_equal(const char* a, const char* b); int string_copy(char* dst, const char* src); int string_len(const char* s); char* dup_string(struct Arena* a, const char* s); char* dup_stringh(struct Heap* h, const char* s); #endif