libxml2_encoding.h File Reference

#include <stdapis/libxml2/libxml2_encoding.h>

Typedef xmlCharEncodingInputFunc

typedef int(*xmlCharEncodingInputFunc

xmlCharEncodingInputFunc: Take a block of chars in the original encoding and try to convert it to an UTF-8 block of chars out.

Returns the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of outlen after return is the number of octets consumed.

Typedef xmlCharEncodingOutputFunc

typedef int(*xmlCharEncodingOutputFunc

xmlCharEncodingOutputFunc: Take a block of UTF-8 chars in and try to convert it to another encoding. Note: a first call designed to produce heading info is called with in = NULL. If stateful this should also initialize the encoder state.

Returns the number of bytes written, -1 if lack of space, or -2 if the transcoding failed. The value of inlen after return is the number of octets consumed if the return value is positive, else unpredictiable. The value of outlen after return is the number of octets produced.

Typedef xmlCharEncodingHandler

typedef struct _xmlCharEncodingHandlerxmlCharEncodingHandler

Typedef xmlCharEncodingHandlerPtr

typedef xmlCharEncodingHandler *xmlCharEncodingHandlerPtr