Wire Sysio Wire Sysion 1.0.0
|
#include <catch_stringref.h>
Public Types | |
using | size_type = std::size_t |
Public Member Functions | |
StringRef () noexcept | |
StringRef (StringRef const &other) noexcept | |
StringRef (StringRef &&other) noexcept | |
StringRef (char const *rawChars) noexcept | |
StringRef (char const *rawChars, size_type size) noexcept | |
StringRef (std::string const &stdString) noexcept | |
~StringRef () noexcept | |
auto | operator= (StringRef const &other) noexcept -> StringRef & |
operator std::string () const | |
void | swap (StringRef &other) noexcept |
auto | operator== (StringRef const &other) const noexcept -> bool |
auto | operator!= (StringRef const &other) const noexcept -> bool |
auto | operator[] (size_type index) const noexcept -> char |
auto | empty () const noexcept -> bool |
auto | size () const noexcept -> size_type |
auto | numberOfCharacters () const noexcept -> size_type |
auto | c_str () const -> char const * |
auto | substr (size_type start, size_type size) const noexcept -> StringRef |
auto | currentData () const noexcept -> char const * |
StringRef () noexcept | |
StringRef (StringRef const &other) noexcept | |
StringRef (StringRef &&other) noexcept | |
StringRef (char const *rawChars) noexcept | |
StringRef (char const *rawChars, size_type size) noexcept | |
StringRef (std::string const &stdString) noexcept | |
~StringRef () noexcept | |
auto | operator= (StringRef const &other) noexcept -> StringRef & |
operator std::string () const | |
void | swap (StringRef &other) noexcept |
auto | operator== (StringRef const &other) const noexcept -> bool |
auto | operator!= (StringRef const &other) const noexcept -> bool |
auto | operator[] (size_type index) const noexcept -> char |
auto | empty () const noexcept -> bool |
auto | size () const noexcept -> size_type |
auto | numberOfCharacters () const noexcept -> size_type |
auto | c_str () const -> char const * |
auto | substr (size_type start, size_type size) const noexcept -> StringRef |
auto | currentData () const noexcept -> char const * |
Friends | |
struct | StringRefTestAccess |
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. c_str() must return a null terminated string, however, and so the StringRef will internally take ownership (taking a copy), if necessary. In theory this ownership is not externally visible - but it does mean (substring) StringRefs should not be shared between threads.
typedef std::size_t Catch::StringRef::size_type = std::size_t |
Definition at line 25 of file catch_stringref.h.
|
inlinenoexcept |
Definition at line 40 of file catch_stringref.h.
|
inlinenoexcept |
Definition at line 44 of file catch_stringref.h.
|
inlinenoexcept |
|
noexcept |
Definition at line 27 of file catch_stringref.cpp.
|
inlinenoexcept |
Definition at line 59 of file catch_stringref.h.
|
inlinenoexcept |
Definition at line 64 of file catch_stringref.h.
|
inlinenoexcept |
Definition at line 69 of file catch_stringref.h.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
auto Catch::StringRef::c_str | ( | ) | const -> char const* |
Definition at line 41 of file catch_stringref.cpp.
auto Catch::StringRef::c_str | ( | ) | const -> char const * |
|
noexcept |
Definition at line 46 of file catch_stringref.cpp.
|
noexcept |
|
inlinenoexcept |
Definition at line 92 of file catch_stringref.h.
|
inlinenoexcept |
|
noexcept |
Definition at line 84 of file catch_stringref.cpp.
|
noexcept |
Catch::StringRef::operator std::string | ( | ) | const |
Definition at line 31 of file catch_stringref.cpp.
Catch::StringRef::operator std::string | ( | ) | const |
|
noexcept |
Definition at line 76 of file catch_stringref.cpp.
|
noexcept |
Definition at line 73 of file catch_stringref.h.
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 80 of file catch_stringref.cpp.
|
noexcept |
|
inlinenoexcept |
Definition at line 95 of file catch_stringref.h.
|
inlinenoexcept |
Definition at line 65 of file catch_stringref.cpp.
|
noexcept |
Definition at line 35 of file catch_stringref.cpp.
|
noexcept |
|
friend |
Definition at line 28 of file catch_stringref.h.