#include <Pt/Latin1Codec.h>
A codec for latin-1 encoding.
Inherits TextCodec< Pt::Char, char >.
Public Types | |
| typedef Pt::Char | intern_type |
| Internal character type. | |
| typedef char | extern_type |
| External character type. | |
| typedef MBState | state_type |
| Conversion state type. | |
Public Member Functions | |
| Latin1Codec (std::size_t ref=0) | |
| Constructor. | |
| virtual | ~Latin1Codec () |
| Destructor. | |
| result | in (MBState &s, const char *fbeg, const char *fend, const char *&fnext, Pt::Char *tbeg, Pt::Char *tend, Pt::Char *&tnext) const |
| Decodes a character sequence. | |
| result | out (MBState &state, const Pt::Char *fbeg, const Pt::Char *fend, const Pt::Char *&fnext, char *tbeg, char *tend, char *&tnext) const |
| Encodes a character sequence. | |
| result | unshift (MBState &state, char *to, char *to_end, char *&to_next) const |
| Unshifts a character sequence. | |
| int | encoding () const |
| Returns the encoding rate. | |
| bool | always_noconv () const |
| Returns true if no conversion is required. | |
| int | length (MBState &state, const char *from, const char *end, std::size_t max) const |
| Returns the number of the decoded characters. | |
| int | max_length () const |
| Maximum length of an external sequence if one character is encoded. | |