#include <catch.hpp>
Public Types | |
using | const_iterator = const char * |
using | size_type = std::size_t |
Public Member Functions | |
constexpr const_iterator | begin () const |
auto | c_str () const -> char const * |
auto | data () const noexcept-> char const * |
constexpr auto | empty () const noexcept-> bool |
constexpr const_iterator | end () const |
constexpr auto | isNullTerminated () const noexcept-> bool |
operator std::string () const | |
auto | operator!= (StringRef const &other) const noexcept-> bool |
auto | operator== (StringRef const &other) const noexcept-> bool |
auto | operator[] (size_type index) const noexcept-> char |
constexpr auto | size () const noexcept-> size_type |
constexpr | StringRef () noexcept=default |
StringRef (char const *rawChars) noexcept | |
constexpr | StringRef (char const *rawChars, size_type size) noexcept |
StringRef (std::string const &stdString) noexcept | |
auto | substr (size_type start, size_type length) const noexcept-> StringRef |
Private Attributes | |
size_type | m_size = 0 |
char const * | m_start = s_empty |
Static Private Attributes | |
static constexpr char const *const | s_empty = "" |
A non-owning string class (similar to the forthcoming std::string_view) Note that, because a StringRef may be a substring of another string, it may not be null terminated.
using Catch::StringRef::const_iterator = const char* |
using Catch::StringRef::size_type = std::size_t |
|
defaultnoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
auto Catch::StringRef::c_str | ( | ) | const -> char const * |
|
noexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlineexplicit |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
staticprivate |