ZeroErr
Loading...
Searching...
No Matches
zeroerr::String Class Reference

#include <string.h>

Public Types

using size_type = std::size_t
using value_type = char
using iterator = char*
using const_iterator = const char*

Public Member Functions

 String () noexcept
 String (const char *text)
 String (const char *text, size_type size)
 String (size_type count, char value)
template<class T, typename std::enable_if< detail::StringLike< T >::value &&!std::is_same< T, String >::value, int >::type = 0>
 String (const T &text)
template<class T, typename std::enable_if< detail::StringLike< T >::owning &&!std::is_same< T, String >::value, int >::type = 0>
 operator T () const
template<class Iterator, typename std::enable_if<!std::is_integral< Iterator >::value, int >::type = 0>
 String (Iterator first, Iterator last)
 String (const String &other)
 String (String &&other) noexcept
 ~String ()
String & operator= (const String &other)
String & operator= (String &&other) noexcept
String & operator= (const char *text)
const char * c_str () const noexcept
const char * data () const noexcept
char * data () noexcept
size_type size () const noexcept
size_type length () const noexcept
bool empty () const noexcept
size_type capacity () const noexcept
iterator begin () noexcept
iterator end () noexcept
const_iterator begin () const noexcept
const_iterator end () const noexcept
char & operator[] (size_type i) noexcept
const char & operator[] (size_type i) const noexcept
char & back () noexcept
const char & back () const noexcept
void clear () noexcept
void reserve (size_type capacity)
void resize (size_type size, char value='\0')
String & append (const char *text, size_type size)
String & append (const char *text)
String & append (const String &text)
void push_back (char value)
String & operator+= (const String &text)
String & operator+= (const char *text)
String & operator+= (char value)
int compare (const String &other) const noexcept
size_type find (const String &text, size_type pos=0) const noexcept
size_type find (char value, size_type pos=0) const noexcept
size_type find_first_of (char value, size_type pos=0) const noexcept
size_type find_last_of (char value, size_type pos=npos) const noexcept
size_type rfind (const String &text, size_type pos=npos) const noexcept
String substr (size_type pos=0, size_type count=npos) const
String & replace (size_type pos, size_type count, const String &text)

Static Public Attributes

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

Member Typedef Documentation

◆ const_iterator

using zeroerr::String::const_iterator = const char*

◆ iterator

◆ size_type

using zeroerr::String::size_type = std::size_t

◆ value_type

Constructor & Destructor Documentation

◆ String() [1/8]

zeroerr::String::String ( )
noexcept

◆ String() [2/8]

zeroerr::String::String ( const char * text)

◆ String() [3/8]

zeroerr::String::String ( const char * text,
size_type size )

◆ String() [4/8]

zeroerr::String::String ( size_type count,
char value )

◆ String() [5/8]

template<class T, typename std::enable_if< detail::StringLike< T >::value &&!std::is_same< T, String >::value, int >::type = 0>
zeroerr::String::String ( const T & text)
inline

◆ String() [6/8]

template<class Iterator, typename std::enable_if<!std::is_integral< Iterator >::value, int >::type = 0>
zeroerr::String::String ( Iterator first,
Iterator last )
inline

◆ String() [7/8]

zeroerr::String::String ( const String & other)

◆ String() [8/8]

zeroerr::String::String ( String && other)
noexcept

◆ ~String()

zeroerr::String::~String ( )

Member Function Documentation

◆ append() [1/3]

String & zeroerr::String::append ( const char * text)

◆ append() [2/3]

String & zeroerr::String::append ( const char * text,
size_type size )

◆ append() [3/3]

String & zeroerr::String::append ( const String & text)

◆ back() [1/2]

const char & zeroerr::String::back ( ) const
inlinenoexcept

◆ back() [2/2]

char & zeroerr::String::back ( )
inlinenoexcept

◆ begin() [1/2]

const_iterator zeroerr::String::begin ( ) const
inlinenoexcept

◆ begin() [2/2]

iterator zeroerr::String::begin ( )
inlinenoexcept

◆ c_str()

const char * zeroerr::String::c_str ( ) const
inlinenoexcept

◆ capacity()

size_type zeroerr::String::capacity ( ) const
inlinenoexcept

◆ clear()

void zeroerr::String::clear ( )
noexcept

◆ compare()

int zeroerr::String::compare ( const String & other) const
noexcept

◆ data() [1/2]

const char * zeroerr::String::data ( ) const
inlinenoexcept

◆ data() [2/2]

char * zeroerr::String::data ( )
inlinenoexcept

◆ empty()

bool zeroerr::String::empty ( ) const
inlinenoexcept

◆ end() [1/2]

const_iterator zeroerr::String::end ( ) const
inlinenoexcept

◆ end() [2/2]

iterator zeroerr::String::end ( )
inlinenoexcept

◆ find() [1/2]

String::size_type zeroerr::String::find ( char value,
size_type pos = 0 ) const
noexcept

◆ find() [2/2]

String::size_type zeroerr::String::find ( const String & text,
size_type pos = 0 ) const
noexcept

◆ find_first_of()

size_type zeroerr::String::find_first_of ( char value,
size_type pos = 0 ) const
inlinenoexcept

◆ find_last_of()

String::size_type zeroerr::String::find_last_of ( char value,
size_type pos = npos ) const
noexcept

◆ length()

size_type zeroerr::String::length ( ) const
inlinenoexcept

◆ operator T()

template<class T, typename std::enable_if< detail::StringLike< T >::owning &&!std::is_same< T, String >::value, int >::type = 0>
zeroerr::String::operator T ( ) const
inline

◆ operator+=() [1/3]

String & zeroerr::String::operator+= ( char value)
inline

◆ operator+=() [2/3]

String & zeroerr::String::operator+= ( const char * text)
inline

◆ operator+=() [3/3]

String & zeroerr::String::operator+= ( const String & text)
inline

◆ operator=() [1/3]

String & zeroerr::String::operator= ( const char * text)

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ operator[]() [1/2]

const char & zeroerr::String::operator[] ( size_type i) const
inlinenoexcept

◆ operator[]() [2/2]

char & zeroerr::String::operator[] ( size_type i)
inlinenoexcept

◆ push_back()

void zeroerr::String::push_back ( char value)

◆ replace()

String & zeroerr::String::replace ( size_type pos,
size_type count,
const String & text )

◆ reserve()

void zeroerr::String::reserve ( size_type capacity)

◆ resize()

void zeroerr::String::resize ( size_type size,
char value = '\0' )

◆ rfind()

String::size_type zeroerr::String::rfind ( const String & text,
size_type pos = npos ) const
noexcept

◆ size()

size_type zeroerr::String::size ( ) const
inlinenoexcept

◆ substr()

String zeroerr::String::substr ( size_type pos = 0,
size_type count = npos ) const

Member Data Documentation

◆ npos

String::size_type zeroerr::String::npos = static_cast<size_type>(-1)
staticconstexpr

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