This interface has to be implemented for a character set encoding.
More...
#include <charset_interface.hpp>
|
enum | { MaxChar =0xFF
} |
| Maximum character this characer set encoding can represent. More...
|
|
|
template<class Iterator > |
UChar | value (char *buf, unsigned int &bufpos, Iterator &itr) const |
| Fetches the unicode character representation of the current character. More...
|
|
template<class Buffer_ > |
void | print (UChar chr, Buffer_ &buf) const |
| Prints a unicode character to a buffer. More...
|
|
|
template<class Iterator > |
static void | skip (char *buf, unsigned int &bufpos, Iterator &itr) |
| Skip to start of the next character. More...
|
|
template<class Iterator > |
static signed char | asciichar (char *buf, unsigned int &bufpos, Iterator &itr) |
| Fetches the ascii char representation of the current character. More...
|
|
template<class Iterator > |
static void | fetchbytes (char *buf, unsigned int &bufpos, Iterator &itr) |
| Fetches the bytes of the current character into a buffer. More...
|
|
static bool | is_equal (const Interface &, const Interface &) |
| Evaluate if two character set encodings of the same type are equal in all properties (code page, etc.) More...
|
|
This interface has to be implemented for a character set encoding.
Maximum character this characer set encoding can represent.
template<class Iterator >
static signed char textwolf::charset::Interface::asciichar |
( |
char * |
buf, |
|
|
unsigned int & |
bufpos, |
|
|
Iterator & |
itr |
|
) |
| |
|
static |
Fetches the ascii char representation of the current character.
- Template Parameters
-
Iterator | source iterator used |
- Parameters
-
[in] | buf | buffer for the parses character data |
[in,out] | bufpos | position in 'buf' |
[in,out] | itr | iterator on the source |
- Returns
- the value of the ascii character or -1
template<class Iterator >
static void textwolf::charset::Interface::fetchbytes |
( |
char * |
buf, |
|
|
unsigned int & |
bufpos, |
|
|
Iterator & |
itr |
|
) |
| |
|
static |
Fetches the bytes of the current character into a buffer.
- Template Parameters
-
Iterator | source iterator used |
- Parameters
-
[in] | buf | buffer for the parses character data |
[in,out] | bufpos | position in 'buf' |
[in,out] | itr | iterator on the source |
static bool textwolf::charset::Interface::is_equal |
( |
const Interface & |
, |
|
|
const Interface & |
|
|
) |
| |
|
inlinestatic |
Evaluate if two character set encodings of the same type are equal in all properties (code page, etc.)
- Returns
- true if yes
template<class Buffer_ >
void textwolf::charset::Interface::print |
( |
UChar |
chr, |
|
|
Buffer_ & |
buf |
|
) |
| const |
Prints a unicode character to a buffer.
- Template Parameters
-
Buffer_ | STL back insertion sequence |
- Parameters
-
[in] | chr | character to print |
[out] | buf | buffer to print to |
template<class Iterator >
static void textwolf::charset::Interface::skip |
( |
char * |
buf, |
|
|
unsigned int & |
bufpos, |
|
|
Iterator & |
itr |
|
) |
| |
|
static |
Skip to start of the next character.
- Template Parameters
-
Iterator | source iterator used |
- Parameters
-
[in] | buf | buffer for the character data |
[in,out] | bufpos | position in 'buf' |
[in,out] | itr | iterator to skip |
template<class Iterator >
UChar textwolf::charset::Interface::value |
( |
char * |
buf, |
|
|
unsigned int & |
bufpos, |
|
|
Iterator & |
itr |
|
) |
| const |
Fetches the unicode character representation of the current character.
- Template Parameters
-
Iterator | source iterator used |
- Parameters
-
[in] | buf | buffer for the parses character data |
[in,out] | bufpos | position in 'buf' |
[in,out] | itr | iterator on the source |
- Returns
- the value of the unicode character
The documentation for this class was generated from the following file: