charset Class Reference
Charset description (basic type).
More...
List of all members.
Public Member Functions |
| | charset () |
| | charset (const string &name) |
| | charset (const char *name) |
| const string & | getName () const |
| charset & | operator= (const charset &other) |
| bool | operator== (const charset &value) const |
| bool | operator!= (const charset &value) const |
const std::vector< ref< const
component > > | getChildComponents () const |
| ref< component > | clone () const |
| void | copyFrom (const component &other) |
| void | parse (const string &buffer, const string::size_type position, const string::size_type end, string::size_type *newPosition=NULL) |
| void | generate (utility::outputStream &os, const string::size_type maxLineLength=lineLengthLimits::infinite, const string::size_type curLinePos=0, string::size_type *newLinePos=NULL) const |
Static Public Member Functions |
| static const charset | getLocaleCharset () |
| static void | convert (const string &in, string &out, const charset &source, const charset &dest) |
| static void | convert (utility::inputStream &in, utility::outputStream &out, const charset &source, const charset &dest) |
Detailed Description
Charset description (basic type).
Constructor & Destructor Documentation
Member Function Documentation
Clone this component.
- Returns:
- a copy of this component
Implements component.
Convert the contents of an input stream in a specified charset to another charset and write the result to an output stream.
- Parameters:
-
| in | input stream to read data from |
| out | output stream to write the converted data |
| source | input charset |
| dest | output charset |
- Exceptions:
-
Convert a string buffer from one charset to another charset (in-memory conversion).
- Deprecated:
- Use the new convert() method, which takes an outputStream parameter.
- Parameters:
-
| in | input buffer |
| out | output buffer |
| source | input charset |
| dest | output charset |
- Exceptions:
-
Referenced by wordEncoder::wordEncoder().
| void copyFrom |
( |
const component & |
other |
) |
[virtual] |
Replace data in this component by data in other component.
Both components must be of the same type.
- Exceptions:
-
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
- Parameters:
-
| other | other component to copy data from |
Implements component.
Generate RFC-2822/MIME data for this component.
- Parameters:
-
| os | output stream |
| maxLineLength | maximum line length for output |
| curLinePos | length of the current line in the output buffer |
| newLinePos | will receive the new line position (length of the last line written) |
Implements component.
| const std::vector< ref< const component > > getChildComponents |
( |
|
) |
const [virtual] |
Return the list of children of this component (const version).
- Returns:
- list of child components
Implements component.
| const charset getLocaleCharset |
( |
|
) |
[static] |
Returns the default charset used on the system.
This function simply calls platformHandler::getLocaleCharset() and is provided for convenience.
- Returns:
- system default charset
Referenced by text::text(), and word::word().
| const string & getName |
( |
|
) |
const |
| bool operator!= |
( |
const charset & |
value |
) |
const |
| bool operator== |
( |
const charset & |
value |
) |
const |
| void parse |
( |
const string & |
buffer, |
|
|
const string::size_type |
position, |
|
|
const string::size_type |
end, |
|
|
string::size_type * |
newPosition = NULL | |
|
) |
| | [virtual] |
Parse RFC-822/MIME data for this component.
- Parameters:
-
| buffer | input buffer |
| position | current position in the input buffer |
| end | end position in the input buffer |
| newPosition | will receive the new position in the input buffer |
Implements component.
The documentation for this class was generated from the following files: