A wrapper around std::string_view that guarantees null terminated strings for passing to C APIs.
More...
#include <zstring_view.h>
A wrapper around std::string_view that guarantees null terminated strings for passing to C APIs.
◆ zstring_view() [1/4]
| constexpr imr::util::zstring_view::zstring_view |
( |
const char * |
str | ) |
|
|
inlineconstexprnoexcept |
◆ zstring_view() [2/4]
| imr::util::zstring_view::zstring_view |
( |
const std::string & |
str | ) |
|
|
inlinenoexcept |
◆ zstring_view() [3/4]
| imr::util::zstring_view::zstring_view |
( |
std::string_view |
| ) |
|
|
delete |
◆ zstring_view() [4/4]
| imr::util::zstring_view::zstring_view |
( |
std::string && |
| ) |
|
|
delete |
◆ c_str()
| constexpr const char * imr::util::zstring_view::c_str |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ sv()
| constexpr std::string_view imr::util::zstring_view::sv |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ data()
| constexpr const char * imr::util::zstring_view::data |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ size()
| constexpr std::size_t imr::util::zstring_view::size |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ empty()
| constexpr bool imr::util::zstring_view::empty |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator std::string_view()
| constexpr imr::util::zstring_view::operator std::string_view |
( |
| ) |
const |
|
inlineconstexprnoexcept |
The documentation for this class was generated from the following file: