#include <core.h>
Public Types | |
typedef Char | char_type |
typedef const Char * | iterator |
Public Member Functions | |
FMT_CONSTEXPR | basic_string_view () FMT_NOEXCEPT |
FMT_CONSTEXPR | basic_string_view (const Char *s, size_t count) FMT_NOEXCEPT |
basic_string_view (const Char *s) | |
template<typename Alloc > | |
FMT_CONSTEXPR | basic_string_view (const std::basic_string< Char, Alloc > &s) FMT_NOEXCEPT |
FMT_CONSTEXPR const Char * | data () const |
FMT_CONSTEXPR size_t | size () const |
FMT_CONSTEXPR iterator | begin () const |
FMT_CONSTEXPR iterator | end () const |
FMT_CONSTEXPR void | remove_prefix (size_t n) |
int | compare (basic_string_view other) const |
Private Attributes | |
const Char * | data_ |
size_t | size_ |
Friends | |
bool | operator== (basic_string_view lhs, basic_string_view rhs) |
bool | operator!= (basic_string_view lhs, basic_string_view rhs) |
bool | operator< (basic_string_view lhs, basic_string_view rhs) |
bool | operator<= (basic_string_view lhs, basic_string_view rhs) |
bool | operator> (basic_string_view lhs, basic_string_view rhs) |
bool | operator>= (basic_string_view lhs, basic_string_view rhs) |
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).
typedef Char basic_string_view< Char >::char_type |
typedef const Char* basic_string_view< Char >::iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |