VMime
stringProxy Class Reference

#include <stringProxy.hpp>

Public Member Functions

 stringProxy ()
 stringProxy (const stringProxy &s)
 stringProxy (const string &s, const size_t start=0, const size_t end=std::numeric_limits< size_t >::max())
void set (const string &s, const size_t start=0, const size_t end=std::numeric_limits< size_t >::max())
void detach ()
stringProxyoperator= (const stringProxy &s)
stringProxyoperator= (const string &s)
void extract (outputStream &os, const size_t start=0, const size_t end=std::numeric_limits< size_t >::max(), utility::progressListener *progress=NULL) const
size_t length () const
size_t start () const
size_t end () const
string::const_iterator it_begin () const
string::const_iterator it_end () const

Detailed Description

This class is a proxy for the string class.

This takes advantage of the COW (copy-on-write) system that might be used in "std::string" implementation.

Constructor & Destructor Documentation

◆ stringProxy() [1/3]

stringProxy ( )

Referenced by operator=(), operator=(), and stringProxy().

◆ stringProxy() [2/3]

stringProxy ( const stringProxy & s)

References stringProxy().

◆ stringProxy() [3/3]

stringProxy ( const string & s,
const size_t start = 0,
const size_t end = std::numeric_limits <size_t>::max() )

References end(), length(), and start().

Member Function Documentation

◆ detach()

void detach ( )

◆ end()

size_t end ( ) const

Referenced by extract(), set(), and stringProxy().

◆ extract()

void extract ( outputStream & os,
const size_t start = 0,
const size_t end = std::numeric_limits <size_t>::max(),
utility::progressListener * progress = NULL ) const

◆ it_begin()

string::const_iterator it_begin ( ) const

◆ it_end()

string::const_iterator it_end ( ) const

◆ length()

size_t length ( ) const

Referenced by operator=(), and stringProxy().

◆ operator=() [1/2]

stringProxy & operator= ( const string & s)

References length(), and stringProxy().

◆ operator=() [2/2]

stringProxy & operator= ( const stringProxy & s)

References stringProxy().

◆ set()

void set ( const string & s,
const size_t start = 0,
const size_t end = std::numeric_limits <size_t>::max() )

References end(), and start().

◆ start()

size_t start ( ) const

Referenced by extract(), set(), and stringProxy().


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