|
pdfmm 0.9.20
|
#include <core.h>
Public Member Functions | |
| constexpr | basic_string_view (const Char *s, size_t count) FMT_NOEXCEPT |
| FMT_CONSTEXPR_CHAR_TRAITS FMT_INLINE | basic_string_view (const Char *s) |
| template<typename Traits , typename Alloc > | |
| FMT_CONSTEXPR | basic_string_view (const std::basic_string< Char, Traits, Alloc > &s) FMT_NOEXCEPT |
| constexpr auto | data () const -> const Char * |
| constexpr auto | size () const -> size_t |
An implementation of std::basic_string_view for pre-C++17. It provides a subset of the API. fmt::basic_string_view is used for format strings even if std::string_view is available to prevent issues when a library is compiled with a different -std option than the client code (which is not recommended).
|
inlineconstexpr |
Constructs a string reference object from a C string and a size.
|
inline |
\rst Constructs a string reference object from a C string computing the size with std::char_traits<Char>::length. \endrst
|
inline |
Constructs a string reference from a std::basic_string object.
|
inlineconstexpr |
Returns a pointer to the string data.
|
inlineconstexpr |
Returns the string size.