template <typename Char>

class basic_string_view

Defined at line 518 of file ../../third_party/fmtlib/src/include/fmt/base.h

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::basic_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).

Public Methods

void basic_string_view<Char> ()

Defined at line 527 of file ../../third_party/fmtlib/src/include/fmt/base.h

void basic_string_view<Char> (const Char * s, size_t count)

Constructs a string view object from a C string and a size.

Defined at line 530 of file ../../third_party/fmtlib/src/include/fmt/base.h

void basic_string_view<Char> (nullptr_t )

Defined at line 533 of file ../../third_party/fmtlib/src/include/fmt/base.h

void basic_string_view<Char> (const Char * s)

Defined at line 539 of file ../../third_party/fmtlib/src/include/fmt/base.h

template <typename S, FMT_ENABLE_IF(detail::is_std_string_like<S>::value&& std::is_same<
                                              typename S::value_type, Char>::value)>
void basic_string_view<Char> (const S & s)

Constructs a string view from a `std::basic_string` or a

`std::basic_string_view` object.

Defined at line 556 of file ../../third_party/fmtlib/src/include/fmt/base.h

const Char * data ()

Returns a pointer to the string data.

Defined at line 560 of file ../../third_party/fmtlib/src/include/fmt/base.h

size_t size ()

Returns the string size.

Defined at line 563 of file ../../third_party/fmtlib/src/include/fmt/base.h

iterator begin ()

Defined at line 565 of file ../../third_party/fmtlib/src/include/fmt/base.h

iterator end ()

Defined at line 566 of file ../../third_party/fmtlib/src/include/fmt/base.h

const Char & operator[] (size_t pos)

Defined at line 568 of file ../../third_party/fmtlib/src/include/fmt/base.h

void remove_prefix (size_t n)

Defined at line 572 of file ../../third_party/fmtlib/src/include/fmt/base.h

bool starts_with (basic_string_view<Char> sv)

Defined at line 577 of file ../../third_party/fmtlib/src/include/fmt/base.h

bool starts_with (Char c)

Defined at line 581 of file ../../third_party/fmtlib/src/include/fmt/base.h

bool starts_with (const Char * s)

Defined at line 584 of file ../../third_party/fmtlib/src/include/fmt/base.h

int compare (basic_string_view<Char> other)

Defined at line 588 of file ../../third_party/fmtlib/src/include/fmt/base.h

Friends

template <typename Char>
bool basic_string_view (basic_string_view<Char> lhs, basic_string_view<Char> rhs)
template <typename Char>
bool basic_string_view (basic_string_view<Char> lhs, basic_string_view<Char> rhs)
template <typename Char>
bool basic_string_view (basic_string_view<Char> lhs, basic_string_view<Char> rhs)
template <typename Char>
bool basic_string_view (basic_string_view<Char> lhs, basic_string_view<Char> rhs)
template <typename Char>
bool basic_string_view (basic_string_view<Char> lhs, basic_string_view<Char> rhs)
template <typename Char>
bool basic_string_view (basic_string_view<Char> lhsbasic_string_view<Char> rhs)