VMime
|
Typedefs | |
typedef std::string | string |
typedef unsigned short | port_t |
typedef int | char_t |
typedef vmime_uint8 | byte_t |
typedef std::vector< byte_t > | byteArray |
typedef std::size_t | size_t |
Functions | |
const string | libname () |
const string | libversion () |
const string | libapi () |
template<typename T , size_t N> | |
T const * | cbegin (T const (&array)[N]) |
template<typename T , size_t N> | |
T const * | cend (T const (&array)[N]) |
template<typename T , size_t N> | |
T * | begin (T(&array)[N]) |
template<typename T , size_t N> | |
T * | end (T(&array)[N]) |
template<typename T , size_t N> | |
size_t | count (T const (&)[N]) |
template<class T1 , class T2 > | |
void | copy_vector (const T1 &v1, T2 &v2) |
template<class T > | |
shared_ptr< T > | clone (shared_ptr< T > obj) |
template<class T > | |
shared_ptr< T > | clone (const T &obj) |
template<class X , class Y > | |
shared_ptr< X > | dynamicCast (shared_ptr< Y > obj) |
template<class X , class Y > | |
shared_ptr< X > | constCast (const shared_ptr< Y > &obj) |
Variables | |
const string | NULL_STRING |
const text | NULL_TEXT |
const word | NULL_WORD ("", vmime::charset(vmime::charsets::US_ASCII)) |
const string | NEW_LINE_SEQUENCE = "\r\n " |
const size_t | NEW_LINE_SEQUENCE_LENGTH = 1 |
const string | CRLF = "\r\n" |
const string | SUPPORTED_MIME_VERSION = "1.0" |
const size_t | npos = std::numeric_limits <size_t>::max() |
CharsetEncodingEntry | g_charsetEncodingMap [] |
typedef vmime_uint8 byte_t |
typedef int char_t |
typedef unsigned short port_t |
typedef std::size_t size_t |
typedef std::string string |
T* vmime::begin | ( | T(&) | array[N] | ) |
T const* vmime::cbegin | ( | T const (&) | array[N] | ) |
T const* vmime::cend | ( | T const (&) | array[N] | ) |
shared_ptr< T > clone | ( | shared_ptr< T > | obj | ) |
Clone helper (using a shared_ptr).
Clone helper (using a const shared_ptr).
This is an alias for dynamic_pointer_cast <T>(obj->clone()).
Referenced by MDNHelper::attachMDNRequest(), header::clone(), messageBuilder::construct(), messageIdSequence::copyFrom(), mailboxGroup::copyFrom(), addressList::copyFrom(), parameterizedHeaderField::copyFrom(), header::copyFrom(), defaultAttachment::operator=(), plainTextPart::parse(), mailboxGroup::parseImpl(), transport::send(), plainTextPart::setText(), headerField::setValue(), headerField::setValueConst(), mailboxList::toAddressList(), and addressList::toMailboxList().
shared_ptr<T> vmime::clone | ( | const T & | obj | ) |
Clone helper (using a const reference).
This is an alias for dynamic_pointer_cast <T>(obj.clone()).
shared_ptr<X> vmime::constCast | ( | const shared_ptr< Y > & | obj | ) |
Const cast helper.
void vmime::copy_vector | ( | const T1 & | v1, |
T2 & | v2 | ||
) |
size_t vmime::count | ( | T const | (&)[N] | ) |
Referenced by copy_vector(), stringUtils::countASCIIchars(), text::createFromString(), b64Encoder::decode(), uuEncoder::decode(), b64Encoder::encode(), kmailMaildirFormat::folderPathToFileSystemPath(), relay::generateImpl(), POP3Folder::getStatus(), inputStreamByteBufferAdapter::read(), inputStreamStringAdapter::read(), inputStreamStringProxyAdapter::read(), stopSequenceFilteredInputStream< COUNT >::read(), SASLSocket::receiveRaw(), maildirFolderStatus::setMessageCount(), POP3FolderStatus::setMessageCount(), inputStreamByteBufferAdapter::skip(), inputStreamStringAdapter::skip(), inputStreamStringProxyAdapter::skip(), seekableInputStreamRegionAdapter::skip(), IMAPFolderStatus::updateFromResponse(), outputStreamByteArrayAdapter::writeImpl(), SMTPChunkingOutputStreamAdapter::writeImpl(), dotFilteredOutputStream::writeImpl(), CRLFToLFFilteredOutputStream::writeImpl(), and LFToCRLFFilteredOutputStream::writeImpl().
shared_ptr<X> vmime::dynamicCast | ( | shared_ptr< Y > | obj | ) |
Downcast helper.
Usage: vmime::dynamicCast <DerivedType>(obj), where 'obj' is of type Type, and DerivedType is derived from Type.
T* vmime::end | ( | T(&) | array[N] | ) |
Referenced by charsetConverter_idna::convert(), stringUtils::countASCIIchars(), parserHelpers::findEOL(), stringUtils::findFirstNonASCIIchar(), parserInputStreamAdapter::findNext(), path::fromString(), stringUtils::isStringEqualNoCase(), body::isValidBoundary(), contentDisposition::parseImpl(), path::parseImpl(), relay::parseImpl(), mediaType::parseImpl(), mailbox::parseImpl(), messageId::parseImpl(), emailAddress::parseImpl(), bodyPart::parseImpl(), parameter::parseImpl(), charset::parseImpl(), messageIdSequence::parseImpl(), encoding::parseImpl(), mailboxList::parseImpl(), addressList::parseImpl(), mailboxGroup::parseImpl(), parameterizedHeaderField::parseImpl(), datetime::parseImpl(), body::parseImpl(), address::parseNext(), headerField::parseNext(), word::parseWithState(), dotFilteredInputStream::read(), stopSequenceFilteredInputStream< COUNT >::read(), stringUtils::unquote(), dotFilteredOutputStream::writeImpl(), CRLFToLFFilteredOutputStream::writeImpl(), and LFToCRLFFilteredOutputStream::writeImpl().
const string VMIME_EXPORT libapi | ( | ) |
Return the library API version (eg: "6:1:6").
const string VMIME_EXPORT libname | ( | ) |
Return the library name (eg: "libvmime").
const string VMIME_EXPORT libversion | ( | ) |
Return the library version (eg: "0.5.2").
VMIME_EXPORT const string CRLF = "\r\n" |
The CR-LF sequence.
Referenced by bodyPart::generateImpl(), body::generateImpl(), and header::generateImpl().
CharsetEncodingEntry g_charsetEncodingMap[] |
Referenced by charset::getRecommendedEncoding().
VMIME_EXPORT const string NEW_LINE_SEQUENCE = "\r\n " |
Referenced by mediaType::generateImpl(), mailbox::generateImpl(), disposition::generateImpl(), and parameter::generateImpl().
VMIME_EXPORT const size_t NEW_LINE_SEQUENCE_LENGTH = 1 |
Referenced by mediaType::generateImpl(), disposition::generateImpl(), and parameter::generateImpl().
VMIME_EXPORT const size_t npos = std::numeric_limits <size_t>::max() |
Constant value with the greatest possible value for an element of type size_t.
The meaning is "infinite" or "until the end".
Referenced by urlUtils::encode(), stringUtils::findFirstNonASCIIchar(), parserInputStreamAdapter::findNext(), body::findNextBoundaryPosition(), path::fromString(), charset::getRecommendedEncoding(), wordEncoder::isEncodingNeeded(), body::isValidBoundary(), courierMaildirFormat::listFolders(), stringUtils::needQuoting(), htmlTextPart::parse(), path::parseImpl(), relay::parseImpl(), disposition::parseImpl(), parameterizedHeaderField::parseImpl(), body::parseImpl(), word::parseWithState(), and stringUtils::quote().
VMIME_EXPORT const string NULL_STRING |
"Null" (empty) string.
Referenced by headerFieldFactory::create().
VMIME_EXPORT const text NULL_TEXT |
"Null" (empty) text.
VMIME_EXPORT const word NULL_WORD |
"Null" (empty) word.
VMIME_EXPORT const string SUPPORTED_MIME_VERSION = "1.0" |
The current MIME version supported by VMime.
Referenced by MDNHelper::buildMDN(), messageBuilder::construct(), and transport::processHeader().