enum_name
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
doctest::String Class Reference

Public Types

using size_type = DOCTEST_CONFIG_STRING_SIZE_TYPE
 
using size_type = DOCTEST_CONFIG_STRING_SIZE_TYPE
 

Public Member Functions

 String (const char *in)
 
 String (const char *in, size_type in_size)
 
 String (std::istream &in, size_type in_size)
 
 String (const String &other)
 
Stringoperator= (const String &other)
 
Stringoperator+= (const String &other)
 
 String (String &&other) noexcept
 
Stringoperator= (String &&other) noexcept
 
char operator[] (size_type i) const
 
char & operator[] (size_type i)
 
const char * c_str () const
 
char * c_str ()
 
size_type size () const
 
size_type capacity () const
 
String substr (size_type pos, size_type cnt=npos) &&
 
String substr (size_type pos, size_type cnt=npos) const &
 
size_type find (char ch, size_type pos=0) const
 
size_type rfind (char ch, size_type pos=npos) const
 
int compare (const char *other, bool no_case=false) const
 
int compare (const String &other, bool no_case=false) const
 
 String (const char *in)
 
 String (const char *in, size_type in_size)
 
 String (std::istream &in, size_type in_size)
 
 String (const String &other)
 
Stringoperator= (const String &other)
 
Stringoperator+= (const String &other)
 
 String (String &&other) noexcept
 
Stringoperator= (String &&other) noexcept
 
char operator[] (size_type i) const
 
char & operator[] (size_type i)
 
const char * c_str () const
 
char * c_str ()
 
size_type size () const
 
size_type capacity () const
 
String substr (size_type pos, size_type cnt=npos) &&
 
String substr (size_type pos, size_type cnt=npos) const &
 
size_type find (char ch, size_type pos=0) const
 
size_type rfind (char ch, size_type pos=npos) const
 
int compare (const char *other, bool no_case=false) const
 
int compare (const String &other, bool no_case=false) const
 

Static Public Attributes

static DOCTEST_CONSTEXPR size_type npos = static_cast<size_type>(-1)
 

Friends

DOCTEST_INTERFACE std::ostreamoperator<< (std::ostream &s, const String &in)
 
DOCTEST_INTERFACE std::ostreamoperator<< (std::ostream &s, const String &in)
 

The documentation for this class was generated from the following files: