Home / Open source / Terimber 2.0
defxml.hpp File Reference#include "xml/defxml.h"
Go to the source code of this file.
|
Functions |
BEGIN_TERIMBER_NAMESPACE
xml_forceinline bool | usascii_to_utf8 (ub4_t in, ub1_t *out, size_t &count) |
| converts ascii char to utf-8 char sequence
|
xml_forceinline bool | fixedN_to_utf8 (encodingSchema schema, const ub1_t *in, size_t count, ub1_t *out, size_t &converted, size_t &processed, size_t &more) |
| converts fixed width char buffer into utf-8 biffer
|
xml_forceinline bool | utf8_to_utf8 (const ub1_t *in, size_t count, size_t &processed, size_t &more) |
| checks if the input buffer is valid utf-8 string
|
xml_forceinline void | windowsN_to_utf8 (encodingSchema schema, const ub1_t *in, size_t count, ub1_t *out, size_t &converted, size_t &processed) |
| converts the Windows encoding to utf-8
|
xml_forceinline void | isoN_to_utf8 (encodingSchema schema, const ub1_t *in, size_t count, ub1_t *out, size_t &converted, size_t &processed) |
| converts the ISO encoding to utf-8
|
Function Documentation
xml_forceinline bool fixedN_to_utf8 |
( |
encodingSchema |
schema, |
|
|
const ub1_t * |
in, |
|
|
size_t |
count, |
|
|
ub1_t * |
out, |
|
|
size_t & |
converted, |
|
|
size_t & |
processed, |
|
|
size_t & |
more | |
|
) |
| | |
converts fixed width char buffer into utf-8 biffer
- Parameters:
-
schema |
encoding schema |
in |
input buffer |
count |
input buffer length |
out |
output buffer |
converted |
input chars converted |
processed |
output chars processed |
more |
more input chars required to process output utf-8 char, crop input chars |
Definition at line 98 of file defxml.hpp.
References ch_cr, ch_hor_tab, ch_lf, s_leadingByte, UCS_4B, UCS_4BS, UCS_4L, UCS_4LS, UTF_16B, and UTF_16L.
Referenced by byte_source::convert_chars(), and byte_source::taste_buffer().
xml_forceinline void isoN_to_utf8 |
( |
encodingSchema |
schema, |
|
|
const ub1_t * |
in, |
|
|
size_t |
count, |
|
|
ub1_t * |
out, |
|
|
size_t & |
converted, |
|
|
size_t & |
processed | |
|
) |
| | |
converts the ISO encoding to utf-8
- Parameters:
-
schema |
encoding schema |
in |
input ISO encoding buffer |
count |
input buffer length |
out |
output buffer |
converted |
input chars converted |
processed |
output chars processed |
Definition at line 375 of file defxml.hpp.
References s_leadingByte, and UTF_ISO88591.
Referenced by byte_source::convert_chars().
BEGIN_TERIMBER_NAMESPACE xml_forceinline bool usascii_to_utf8 |
( |
ub4_t |
in, |
|
|
ub1_t * |
out, |
|
|
size_t & |
count | |
|
) |
| | |
xml_forceinline bool utf8_to_utf8 |
( |
const ub1_t * |
in, |
|
|
size_t |
count, |
|
|
size_t & |
processed, |
|
|
size_t & |
more | |
|
) |
| | |
xml_forceinline void windowsN_to_utf8 |
( |
encodingSchema |
schema, |
|
|
const ub1_t * |
in, |
|
|
size_t |
count, |
|
|
ub1_t * |
out, |
|
|
size_t & |
converted, |
|
|
size_t & |
processed | |
|
) |
| | |
|
|