diff options
author | Chris Robinson <[email protected]> | 2018-11-15 06:32:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 06:32:01 -0800 |
commit | 245b7ff0b41ebd43f3c1c53dd90ab0bf358e4c06 (patch) | |
tree | a48dda544928194b84ae71e8789274f6025c7c3e /Alc/alstring.h | |
parent | 7b3a2085aac8eac47f9968f331d3991167793e85 (diff) |
Remove the unused al_string API
Diffstat (limited to 'Alc/alstring.h')
-rw-r--r-- | Alc/alstring.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/Alc/alstring.h b/Alc/alstring.h deleted file mode 100644 index f991310f..00000000 --- a/Alc/alstring.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef ALSTRING_H -#define ALSTRING_H - -#include <string.h> - -#include "vector.h" - - -#ifdef __cplusplus -extern "C" { -#endif - -typedef char al_string_char_type; -TYPEDEF_VECTOR(al_string_char_type, al_string) -TYPEDEF_VECTOR(al_string, vector_al_string) - -inline void alstr_reset(al_string *str) -{ VECTOR_DEINIT(*str); } -#define AL_STRING_INIT(_x) do { (_x) = (al_string)NULL; } while(0) -#define AL_STRING_INIT_STATIC() ((al_string)NULL) -#define AL_STRING_DEINIT(_x) alstr_reset(&(_x)) - -inline size_t alstr_length(const_al_string str) -{ return VECTOR_SIZE(str); } - -inline ALboolean alstr_empty(const_al_string str) -{ return alstr_length(str) == 0; } - -inline const al_string_char_type *alstr_get_cstr(const_al_string str) -{ return str ? &VECTOR_FRONT(str) : ""; } - -void alstr_clear(al_string *str); - -int alstr_cmp(const_al_string str1, const_al_string str2); -int alstr_cmp_cstr(const_al_string str1, const al_string_char_type *str2); - -void alstr_copy(al_string *str, const_al_string from); -void alstr_copy_cstr(al_string *str, const al_string_char_type *from); -void alstr_copy_range(al_string *str, const al_string_char_type *from, const al_string_char_type *to); - -void alstr_append_char(al_string *str, const al_string_char_type c); -void alstr_append_cstr(al_string *str, const al_string_char_type *from); -void alstr_append_range(al_string *str, const al_string_char_type *from, const al_string_char_type *to); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* ALSTRING_H */ |