|
VMime
|
#include <word.hpp>


Protected Member Functions | |
| void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
| void | parseWithState (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition, parserState *state) |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A class that encapsulates an encoded-word (RFC-2047): some text encoded into one specified charset.
| word | ( | ) |
Construct an empty word.
Charset is set to the current locale charset.
Construct a word using a string buffer.
Charset is set to the current locale charset.
Construct a word using a string buffer and a specified charset.
| buffer | string buffer |
| charset | charset in which the string is encoded |
Construct a word using a string buffer and a specified charset and language tag (RFC-1766).
| buffer | string buffer |
| charset | charset in which the string is encoded |
| lang | language tag, in the format specified by RFC-1766 |
|
virtual |
Replace data in this word by data in other word.
| other | other word to copy data from |
Implements component.
References vmime::dynamicCast().
|
virtual |
Generate RFC-2822/MIME data for this component, using the default generation context.
| ctx | generation context |
| outputStream | output stream |
| curLinePos | length of the current line in the output buffer |
| newLinePos | will receive the new line position (length of the last line written) |
Reimplemented from component.
|
virtual |
Generate RFC-2822/MIME data for this component.
| maxLineLength | maximum line length for output |
| curLinePos | length of the current line in the output buffer |
Reimplemented from component.
Referenced by emailAddress::generateImpl(), and word::generateImpl().
|
virtual |
Generate RFC-2822/MIME data for this component, using the default generation context.
| outputStream | output stream |
| curLinePos | length of the current line in the output buffer |
| newLinePos | will receive the new line position (length of the last line written) |
Reimplemented from component.
|
protectedvirtual |
Implements component.
References vmime::dynamicCast(), and word::generate().
| string & getBuffer | ( | ) |
Return the raw data for this encoded word.
Return the raw data for this encoded word.
Referenced by emailAddress::generateImpl(), courierMaildirFormat::isSubfolderDirectory(), kmailMaildirFormat::isSubfolderDirectory(), and maildirStore::isValidFolderName().
|
virtual |
Return the list of children of this component.
Implements component.
| const string getConvertedText | ( | const charset & | dest, |
| const charsetConverterOptions & | opts = charsetConverterOptions() |
||
| ) | const |
Return the contained text converted to the specified charset.
| dest | output charset |
| opts | options for charset conversion |
References charset::convert(), and vmime::dynamicCast().
Referenced by emailAddress::generateImpl(), and word::isEquivalent().
Return the language used in this word (optional).
If not specified, the value is empty.
| bool isEmpty | ( | ) | const |
Tests whether this word is empty.
Referenced by emailAddress::isEmpty().
Returns whether two words actually represent the same text, regardless of their charset.
| other | word to compare to |
References word::getConvertedText(), and vmime::charsets::UTF_8.
References vmime::dynamicCast().
References vmime::dynamicCast(), and charset::getLocalCharset().
References vmime::dynamicCast().
References vmime::dynamicCast().
|
protectedvirtual |
Reimplemented from component.
References vmime::dynamicCast(), vmime::end(), and word::parseWithState().
|
protected |
References vmime::dynamicCast(), vmime::end(), component::setParsedBounds(), vmime::charsets::US_ASCII, and vmime::charsets::UTF_8.
Referenced by word::parseImpl().
Set the raw data for this encoded word.
| buffer | raw data buffer |
References vmime::dynamicCast().
Set the language used in this word (optional).
| lang | language tag, in the format specified by RFC-1766 |
References vmime::dynamicCast().