wordEncoder Class Reference

Encodes words following RFC-2047. More...

Collaboration diagram for wordEncoder:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Encoding { ENCODING_AUTO, ENCODING_QP, ENCODING_B64 }

Public Member Functions

 wordEncoder (const string &buffer, const charset &charset, const Encoding encoding=ENCODING_AUTO)
const string getNextChunk (const string::size_type maxLength)
Encoding getEncoding () const

Detailed Description

Encodes words following RFC-2047.


Member Enumeration Documentation

enum Encoding

Available encodings for RFC-2047.

Enumerator:
ENCODING_AUTO 
ENCODING_QP 
ENCODING_B64 

Constructor & Destructor Documentation

wordEncoder ( const string buffer,
const charset charset,
const Encoding  encoding = ENCODING_AUTO 
)

Member Function Documentation

wordEncoder::Encoding getEncoding (  )  const

Return the encoding used.

Returns:
encoding
const string getNextChunk ( const string::size_type  maxLength  ) 

Return the next chunk in the word.

Parameters:
maxLength maximal length of the chunk
Returns:
next chunk, of maximal length 'maxLength' if possible

References charsetConverter::convert(), wordEncoder::ENCODING_B64, vmime::lineLengthLimits::max, and vmime::charsets::UTF_8.


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

Generated by  doxygen 1.6.2