16 if (lhs == rhs)
return true;
17 if (lhs == NULL || rhs == NULL)
return false;
36 .size =
sizeof(
char*),
42 .size =
sizeof(
void*),
CT_NODISCARD CT_CONSTFN CT_BASE_API ctu_hash_t ctu_ptrhash(const void *ptr)
hash a pointer value
CT_NODISCARD CT_PUREFN CT_BASE_API ctu_hash_t text_hash(text_view_t text)
hash a string with a provided length
CT_NODISCARD CT_PUREFN CT_BASE_API bool str_equal(const char *lhs, const char *rhs)
compare strings equality
CT_PUREFN CT_BASE_API bool text_equal(text_view_t lhs, text_view_t rhs)
check if two text objects are equal
CT_NODISCARD CT_PUREFN CT_BASE_API ctu_hash_t str_hash(const char *str)
hash a string
const hash_info_t kTypeInfoString
type information for a c style string
const hash_info_t kTypeInfoPtr
type information for a generic pointer this operates on the pointer itself and not the data it points...
const hash_info_t kTypeInfoText
type information for a text_view_t
information for using a type in a hashset or hashmap
a non-owning view of text
bool info_ptr_equal(const void *lhs, const void *rhs)
bool info_str_equal(const void *lhs, const void *rhs)
size_t info_str_hash(const void *key)
size_t info_text_hash(const void *key)
size_t info_ptr_hash(const void *key)
bool info_text_equal(const void *lhs, const void *rhs)