cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
string
- like wrapper for a NUL-terminated C-style string.
More...
Public Member Functions | |
CXXO_CONSTEXPR | basic_cstring_view () noexcept=default |
default constructor | |
CXXO_CONSTEXPR14 | basic_cstring_view (basic_cstring_view const &) noexcept=default |
copy constructor | |
CXXO_CONSTEXPR14 basic_cstring_view & | operator= (basic_cstring_view const &) noexcept=default |
assignment | |
CXXO_CONSTEXPR | basic_cstring_view (Ch const *str) |
constructor with C-string | |
CXXO_CONSTEXPR | basic_cstring_view (null_terminated_t, sv_t const &s) CXXO_NOEXCEPTNOTHROW |
constructor marking a null-terminated string source | |
CXXO_CONSTEXPR | basic_cstring_view (null_terminated_t, Ch const *str, size_type len) |
constructor marking a null-terminated string source | |
CXXO_CONSTEXPR | operator sv_t () const CXXO_NOEXCEPTNOTHROW |
implicitly convert to the related basic_string_view type. | |
CXXO_CONSTEXPR size_type | size () const CXXO_NOEXCEPTNOTHROW |
size | |
CXXO_CONSTEXPR size_type | length () const CXXO_NOEXCEPTNOTHROW |
length | |
CXXO_CONSTEXPR bool | empty () const CXXO_NOEXCEPTNOTHROW |
is empty? | |
CXXO_CONSTEXPR const_pointer | data () const CXXO_NOEXCEPT |
access to data pointer | |
const_pointer | c_str () const CXXO_NOEXCEPTNOTHROW |
access to data pointer | |
string
- like wrapper for a NUL-terminated C-style string.
A basic_cstring_view
is similar to a basic_string_view
in most if not all respects, except that a basic_cstring_view
expects NUL-termination.