Main Page Class Hierarchy Alphabetical List Compound List Examples |
quoted-printable encoder More...
#include <qp.h>
Public Member Functions | |
double | codeSizeMultiplier () const |
Encoder (bool isBinary=false) | |
const char * | name () const |
size_t | maxlen () |
void | maxlen (size_t i) |
template<typename InIt , typename OutIt > | |
void | process (InIt bit, InIt eit, OutIt out) |
template<typename OutIt > | |
void | process (char_type ic, OutIt &out) |
template<typename OutIt > | |
void | flush (OutIt &out) |
quoted-printable encoder
Encoder | ( | bool | isBinary = false |
) | [inline] |
Constructor
isBinary | if true all space and newline characters will be treated like binary chars and will be hex encoded (useful if you want to encode a binary file). |
double codeSizeMultiplier | ( | ) | const [inline, virtual] |
return the multiplier of the required (max) size of the output buffer when encoding
Reimplemented from codec.
void flush | ( | OutIt & | out | ) | [inline] |
Write to out
any buffered encoded char.
Referenced by Encoder::process().
void maxlen | ( | size_t | i | ) | [inline] |
Set the max line length. No more then i
chars will be printed on one line.
size_t maxlen | ( | ) | [inline] |
Returns the max line length
const char* name | ( | ) | const [inline, virtual] |
Returns the name of the codec ("Quoted-Printable")
Implements codec.
void process | ( | char_type | ic, | |
OutIt & | out | |||
) | [inline] |
void process | ( | InIt | bit, | |
InIt | eit, | |||
OutIt | out | |||
) | [inline] |
Encodes [bit
,eit
) and write any encoded char to out
.
References Encoder::flush().