|
VMime
|
#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 () |
| stringProxy & | operator= (const stringProxy &s) |
| stringProxy & | operator= (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 |
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.
| 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 detach | ( | ) |
| size_t end | ( | ) | const |
Referenced by stringProxy::extract(), and stringProxy::set().
| void extract | ( | outputStream & | os, |
| const size_t | start = 0, |
||
| const size_t | end = std::numeric_limits <size_t>::max(), |
||
| utility::progressListener * | progress = NULL |
||
| ) | const |
| string::const_iterator it_begin | ( | ) | const |
Referenced by inputStreamStringProxyAdapter::read().
| string::const_iterator it_end | ( | ) | const |
Referenced by inputStreamStringProxyAdapter::read().
| size_t length | ( | ) | const |
Referenced by inputStreamStringProxyAdapter::eof(), stringContentHandler::extract(), stringContentHandler::extractRaw(), stringContentHandler::getLength(), stringContentHandler::isEmpty(), inputStreamStringProxyAdapter::read(), inputStreamStringProxyAdapter::seek(), and inputStreamStringProxyAdapter::skip().
| stringProxy & operator= | ( | const string & | s | ) |
References vmime::dynamicCast().
| stringProxy & operator= | ( | const stringProxy & | s | ) |
References vmime::dynamicCast().
| void set | ( | const string & | s, |
| const size_t | start = 0, |
||
| const size_t | end = std::numeric_limits <size_t>::max() |
||
| ) |
References vmime::dynamicCast(), stringProxy::end(), and stringProxy::start().
Referenced by stringContentHandler::setData(), and stringContentHandler::setData().
| size_t start | ( | ) | const |
Referenced by stringProxy::extract(), and stringProxy::set().