Stop the Oboe recording stream when recording is stopped
[openal-soft.git] / common / alstring.h
blob6c497190309c20f9aec696b688d1ddb4849f526f
1 #ifndef AL_STRING_H
2 #define AL_STRING_H
4 #include <cstddef>
5 #include <cstring>
6 #include <string>
8 #include "almalloc.h"
11 namespace al {
13 template<typename T, typename Tr=std::char_traits<T>>
14 using basic_string = std::basic_string<T, Tr, al::allocator<T>>;
16 using string = basic_string<char>;
17 using wstring = basic_string<wchar_t>;
18 using u16string = basic_string<char16_t>;
19 using u32string = basic_string<char32_t>;
22 /* These would be better served by using a string_view-like span/view with
23 * case-insensitive char traits.
25 int strcasecmp(const char *str0, const char *str1) noexcept;
26 int strncasecmp(const char *str0, const char *str1, std::size_t len) noexcept;
28 } // namespace al
30 #endif /* AL_STRING_H */