|
Apache Log4cxx
Version 2.0.0
|
Methods for converting between external and internal strings. More...
#include <transcoder.h>
Public Types | |
| enum | { LOSSCHAR = 0xFFFD } |
Static Public Member Functions | |
| static void | decodeUTF8 (const std::string &src, LogString &dst) |
Append the UTF-8 characters in src onto dst. | |
| static void | encodeUTF8 (const LogString &src, std::string &dst) |
Append \src onto dst as a UTF-8 string. | |
| static void | encodeUTF8 (unsigned int sv, ByteBuffer &dst) |
Append the code point sv to dst as UTF-8. | |
| static void | encodeUTF16LE (unsigned int sv, ByteBuffer &dst) |
Append the code point sv to dst as UTF-16LE. | |
| static void | encodeUTF16BE (unsigned int sv, ByteBuffer &dst) |
Append the code point sv to dst as UTF-16BE. | |
| static unsigned int | decode (const std::string &str, std::string::const_iterator &iter) |
Increment iter past the next code point in str. | |
| static unsigned int | getCodePoint (const std::string &str, std::string::const_iterator &pCodePoint) |
Increment pCodePoint past one str code point. | |
| static void | encode (unsigned int ch, std::string &dst) |
Append the UTF8 equivalent to ch onto dst. | |
| static bool | hasReplacementCharacter (const std::string &str) |
Does str contain the Unicode replacement character. | |
| static void | decode (const std::string &src, LogString &dst) |
Append the LogString equivalent of src onto dst. | |
| static void | encode (const LogString &src, std::string &dst) |
Append the UTF8 equivalent of src onto dst. | |
| static void | decode (const std::wstring &src, LogString &dst) |
Append the LogString equivalent of src onto dst. | |
| static void | encode (const LogString &src, std::wstring &dst) |
Append the equivalent of src onto dst. | |
| static unsigned int | decode (const std::wstring &str, std::wstring::const_iterator &iter) |
Increment iter past the next code point in str. | |
| static unsigned int | getCodePoint (const std::wstring &str, std::wstring::const_iterator &pCodePoint) |
Increment pCodePoint past one str code point. | |
| static void | encode (unsigned int ch, std::wstring &dst) |
Append the wchar_t equivalent to ch onto dst. | |
| static bool | hasReplacementCharacter (const std::wstring &str) |
Does str contain the Unicode replacement character. | |
| static void | decode (const CFStringRef &src, LogString &dst) |
Append the LogString equivalent of src onto dst. | |
| static CFStringRef | encode (const LogString &src) |
A CFStringRef equivalent of src. | |
| static logchar | decode (char ch) |
The logchar equivalent to ch. | |
| static LogString | decode (const char *str) |
The LogString equivalent to the characters in the null terminated bytes at str. | |
| static std::string | encodeCharsetName (const LogString &charsetName) |
| Encodes a charset name in the default encoding without using a CharsetEncoder (which could trigger recursion). | |
Methods for converting between external and internal strings.
|
static |
The logchar equivalent to ch.
|
static |
Append the LogString equivalent of src onto dst.
|
static |
The LogString equivalent to the characters in the null terminated bytes at str.
|
static |
Append the LogString equivalent of src onto dst.
|
static |
Increment iter past the next code point in str.
iter is a valid, dereferenceable iterator. iter and the end of str are in the same sequence. | str | contains the code point to which iter refers. |
| iter | the start of the current code point. |
iter unchanged.
|
static |
Append the LogString equivalent of src onto dst.
|
static |
Increment iter past the next code point in str.
iter is a valid, dereferenceable iterator. iter and the end of str are in the same sequence. | str | contains the code point to which iter refers. |
| iter | the start of the current code point. |
iter unchanged.
|
static |
Append the UTF-8 characters in src onto dst.
|
static |
A CFStringRef equivalent of src.
|
static |
Append the UTF8 equivalent of src onto dst.
Unrepresentable characters may be replaced with loss characters.
|
static |
Append the equivalent of src onto dst.
|
static |
Append the UTF8 equivalent to ch onto dst.
|
static |
Append the wchar_t equivalent to ch onto dst.
|
static |
Encodes a charset name in the default encoding without using a CharsetEncoder (which could trigger recursion).
|
static |
Append the code point sv to dst as UTF-16BE.
|
static |
Append the code point sv to dst as UTF-16LE.
|
static |
Append \src onto dst as a UTF-8 string.
|
static |
Append the code point sv to dst as UTF-8.
|
static |
Increment pCodePoint past one str code point.
pCodePoint is a valid, dereferenceable iterator. pCodePoint and the end of str are in the same sequence. [old_pCodePoint = pCodePoint] (old_pCodePoint < pCodePoint) // pCodePoint is always advanced | str | contains the code point to which pCodePoint refers. |
| pCodePoint | the start of the current code point. |
pCodePoint is always advanced.
|
static |
Increment pCodePoint past one str code point.
pCodePoint is a valid, dereferenceable iterator. pCodePoint and the end of str are in the same sequence. [old_pCodePoint = pCodePoint] (old_pCodePoint < pCodePoint) // pCodePoint is always advanced | str | contains the code point to which pCodePoint refers. |
| pCodePoint | the start of the current code point. |
pCodePoint is always advanced.
|
static |
Does str contain the Unicode replacement character.
|
static |
Does str contain the Unicode replacement character.