Fission FSN
Loading...
Searching...
No Matches
doctest::String Class Reference

#include <doctest.h>

Public Types

using size_type = DOCTEST_CONFIG_STRING_SIZE_TYPE

Public Member Functions

 String () noexcept
 ~String ()
 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)

Member Typedef Documentation

◆ size_type

Constructor & Destructor Documentation

◆ String() [1/6]

doctest::String::String ( )
noexcept

◆ ~String()

doctest::String::~String ( )

◆ String() [2/6]

doctest::String::String ( const char * in)

◆ String() [3/6]

doctest::String::String ( const char * in,
size_type in_size )

◆ String() [4/6]

doctest::String::String ( std::istream & in,
size_type in_size )

◆ String() [5/6]

doctest::String::String ( const String & other)

◆ String() [6/6]

doctest::String::String ( String && other)
noexcept

Member Function Documentation

◆ c_str() [1/2]

char * doctest::String::c_str ( )
inline

◆ c_str() [2/2]

const char * doctest::String::c_str ( ) const
inline

◆ capacity()

size_type doctest::String::capacity ( ) const

◆ compare() [1/2]

int doctest::String::compare ( const char * other,
bool no_case = false ) const

◆ compare() [2/2]

int doctest::String::compare ( const String & other,
bool no_case = false ) const

◆ find()

size_type doctest::String::find ( char ch,
size_type pos = 0 ) const

◆ operator+=()

String & doctest::String::operator+= ( const String & other)

◆ operator=() [1/2]

String & doctest::String::operator= ( const String & other)

◆ operator=() [2/2]

String & doctest::String::operator= ( String && other)
noexcept

◆ operator[]() [1/2]

char & doctest::String::operator[] ( size_type i)

◆ operator[]() [2/2]

char doctest::String::operator[] ( size_type i) const

◆ rfind()

size_type doctest::String::rfind ( char ch,
size_type pos = npos ) const

◆ size()

size_type doctest::String::size ( ) const

◆ substr() [1/2]

String doctest::String::substr ( size_type pos,
size_type cnt = npos ) &&

◆ substr() [2/2]

String doctest::String::substr ( size_type pos,
size_type cnt = npos ) const &

◆ operator<<

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

Member Data Documentation

◆ buf

char doctest::String::buf[len]

◆ data

view doctest::String::data

◆ npos

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

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