|
STA_DECL bool | is_path_special (const char *path) |
| check if a path is special special paths are paths such as "." and ".." that are not valid for most operations More...
|
|
STA_DECL ctu_hash_t | ctu_ptrhash (const void *ptr) |
| hash a pointer value More...
|
|
STA_DECL ctu_hash_t | str_hash (const char *str) |
| hash a string More...
|
|
STA_DECL ctu_hash_t | text_hash (text_view_t text) |
| hash a string with a provided length More...
|
|
STA_DECL bool | ctu_isalpha (int c) |
| check if a character is a letter More...
|
|
STA_DECL bool | ctu_isdigit (int c) |
| check if a character is a digit More...
|
|
STA_DECL bool | ctu_isalnum (int c) |
| check if a character is alphanumeric More...
|
|
STA_DECL bool | str_equal (const char *lhs, const char *rhs) |
| compare strings equality More...
|
|
STA_DECL size_t | ctu_strlen (const char *str) |
| get the length of a string not including the null terminator equivalent to strlen but with safety checks More...
|
|
STA_DECL bool | ctu_string_empty (const char *str) |
| check if a string is empty equivalent to strlen(str) == 0 More...
|
|
STA_DECL int | ctu_strncmp (const char *lhs, const char *rhs, size_t length) |
| compare two strings equivalent to strncmp but with safety checks More...
|
|
STA_DECL int | ctu_strcmp (const char *lhs, const char *rhs) |
| compare two strings equivalent to strcmp but with safety checks More...
|
|
STA_DECL char * | ctu_strcpy (char *dst, const char *src, size_t size) |
|
STA_DECL CT_NOALIAS void * | ctu_memcpy (void *restrict dst, const void *restrict src, size_t size) |
|
STA_DECL void * | ctu_memmove (void *dst, const void *src, size_t size) |
|
STA_DECL CT_NOALIAS void | ctu_memset (void *dst, int value, size_t size) |
|
STA_DECL char * | ctu_strstr (const char *haystack, const char *needle) |
| find a substring in a string equivalent to strstr but with safety checks More...
|
|
STA_DECL text_t | text_make (char *text, size_t length) |
|
STA_DECL text_t | text_from (char *text) |
| create a new owning text array this is a shortcut for More...
|
|
STA_DECL text_view_t | text_view_make (const char *text, size_t length) |
|
STA_DECL text_view_t | text_view_from (const char *text) |
| create a new non-owning text array this is a shortcut for More...
|
|
bool | text_equal (text_view_t lhs, text_view_t rhs) |
| check if two text objects are equal More...
|
|