version 1.17, 1999/09/17 12:08:23
|
version 1.18, 1999/11/10 17:54:34
|
Line 51
|
Line 51
|
|
|
/** |
/** |
* isolat1ToUTF8: |
* isolat1ToUTF8: |
* @out: a pointer ot an array of bytes to store the result |
* @out: a pointer to an array of bytes to store the result |
* @outlen: the lenght of @out |
* @outlen: the length of @out |
* @in: a pointer ot an array of ISO Latin 1 chars |
* @in: a pointer to an array of ISO Latin 1 chars |
* @inlen: the lenght of @in |
* @inlen: the length of @in |
* |
* |
* Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 |
* Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 |
* block of chars out. |
* block of chars out. |
Line 86 isolat1ToUTF8(unsigned char* out, int ou
|
Line 86 isolat1ToUTF8(unsigned char* out, int ou
|
|
|
/** |
/** |
* UTF8Toisolat1: |
* UTF8Toisolat1: |
* @out: a pointer ot an array of bytes to store the result |
* @out: a pointer to an array of bytes to store the result |
* @outlen: the lenght of @out |
* @outlen: the length of @out |
* @in: a pointer ot an array of UTF-8 chars |
* @in: a pointer to an array of UTF-8 chars |
* @inlen: the lenght of @in |
* @inlen: the length of @in |
* |
* |
* Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 |
* Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 |
* block of chars out. |
* block of chars out. |
Line 123 UTF8Toisolat1(unsigned char* out, int ou
|
Line 123 UTF8Toisolat1(unsigned char* out, int ou
|
|
|
/** |
/** |
* UTF16ToUTF8: |
* UTF16ToUTF8: |
* @out: a pointer ot an array of bytes to store the result |
* @out: a pointer to an array of bytes to store the result |
* @outlen: the lenght of @out |
* @outlen: the length of @out |
* @in: a pointer ot an array of UTF-16 chars (array of unsigned shorts) |
* @in: a pointer to an array of UTF-16 chars (array of unsigned shorts) |
* @inlen: the lenght of @in |
* @inlen: the length of @in |
* |
* |
* Take a block of UTF-16 ushorts in and try to convert it to an UTF-8 |
* Take a block of UTF-16 ushorts in and try to convert it to an UTF-8 |
* block of chars out. |
* block of chars out. |
Line 161 UTF16ToUTF8(unsigned char* out, int outl
|
Line 161 UTF16ToUTF8(unsigned char* out, int outl
|
else if (c < 0x10000) { *out++= (c >> 12) | 0xE0; bits= 6; } |
else if (c < 0x10000) { *out++= (c >> 12) | 0xE0; bits= 6; } |
else { *out++= (c >> 18) | 0xF0; bits= 12; } |
else { *out++= (c >> 18) | 0xF0; bits= 12; } |
|
|
for ( ; bits < 0; bits-= 6) { |
for ( ; bits > 0; bits-= 6) { |
if (out >= outend) return -1; |
if (out >= outend) return -1; |
*out++= (c >> bits) & 0x3F; |
*out++= (c >> bits) & 0x3F; |
} |
} |
Line 171 UTF16ToUTF8(unsigned char* out, int outl
|
Line 171 UTF16ToUTF8(unsigned char* out, int outl
|
|
|
/** |
/** |
* UTF8ToUTF16: |
* UTF8ToUTF16: |
* @out: a pointer ot an array of shorts to store the result |
* @out: a pointer to an array of shorts to store the result |
* @outlen: the lenght of @out (number of shorts) |
* @outlen: the length of @out (number of shorts) |
* @in: a pointer ot an array of UTF-8 chars |
* @in: a pointer to an array of UTF-8 chars |
* @inlen: the lenght of @in |
* @inlen: the length of @in |
* |
* |
* Take a block of UTF-8 chars in and try to convert it to an UTF-16 |
* Take a block of UTF-8 chars in and try to convert it to an UTF-16 |
* block of chars out. |
* block of chars out. |
Line 264 xmlDetectCharEncoding(const unsigned cha
|
Line 264 xmlDetectCharEncoding(const unsigned cha
|
|
|
/** |
/** |
* xmlParseCharEncoding: |
* xmlParseCharEncoding: |
* @name: the encoding name as parsed, in UTF-8 format (ASCCI actually) |
* @name: the encoding name as parsed, in UTF-8 format (ASCII actually) |
* |
* |
* Conpare the string to the known encoding schemes already known. Note |
* Conpare the string to the known encoding schemes already known. Note |
* that the comparison is case insensitive accordingly to the section |
* that the comparison is case insensitive accordingly to the section |
Line 351 static xmlCharEncodingHandlerPtr xmlDefa
|
Line 351 static xmlCharEncodingHandlerPtr xmlDefa
|
|
|
/** |
/** |
* xmlNewCharEncodingHandler: |
* xmlNewCharEncodingHandler: |
* @name: the encoding name, in UTF-8 format (ASCCI actually) |
* @name: the encoding name, in UTF-8 format (ASCII actually) |
* @input: the xmlCharEncodingInputFunc to read that encoding |
* @input: the xmlCharEncodingInputFunc to read that encoding |
* @output: the xmlCharEncodingOutputFunc to write that encoding |
* @output: the xmlCharEncodingOutputFunc to write that encoding |
* |
* |
Line 409 xmlNewCharEncodingHandler(const char *na
|
Line 409 xmlNewCharEncodingHandler(const char *na
|
* |
* |
* Initialize the char encoding support, it registers the default |
* Initialize the char encoding support, it registers the default |
* encoding supported. |
* encoding supported. |
* NOTE: while public theis function usually don't need to be called |
* NOTE: while public, this function usually doesn't need to be called |
* in normal processing. |
* in normal processing. |
*/ |
*/ |
void |
void |