#include "cr-utils.h"
Go to the source code of this file.
Data Structures | |
struct | _CREncHandler |
This class is responsible of the the encoding conversions stuffs in libcroco. More... | |
Functions | |
CREncHandler * | cr_enc_handler_get_instance (enum CREncoding a_enc) |
Gets the instance of encoding handler. | |
enum CRStatus | cr_enc_handler_resolve_enc_alias (const guchar *a_en_alias, enum CREncoding *a_enc) |
Given an encoding name (called an alias name) the function returns the matching encoding type. | |
void | cr_enc_handler_destroy (CREncHandler *a_enc_hdlr) |
enum CRStatus | cr_enc_handler_convert_input (CREncHandler *a_this, const guchar *a_in, gulong *a_in_len, guchar **a_out, gulong *a_out_len) |
Converts a raw input buffer into an utf8 buffer. | |
Variables | |
typedefG_BEGIN_DECLS struct _CREncHandler | CREncHandler |
enum CRStatus(* | CREncInputFunc )(const guchar *a_in, gulong *a_in_len, guchar *a_out, gulong *a_out_len) |
enum CRStatus(* | CREncOutputFunc )(const guchar *a_in, gulong *a_in_len, guchar *a_out, gulong *a_out_len) |
enum CRStatus(* | CREncInputStrLenAsUtf8Func )(const guchar *a_in_start, const guchar *a_in_end, gulong *a_in_size) |
enum CRStatus(* | CREncUtf8StrLenAsOutputFunc )(const guchar *a_in_start, const guchar *a_in_end, gulong *a_in_size) |
Definition in file cr-enc-handler.h.
|
Converts a raw input buffer into an utf8 buffer.
Definition at line 154 of file cr-enc-handler.c. References CR_BAD_PARAM_ERROR, CR_OK, and CRStatus. Referenced by cr_input_new_from_buf(). |
|
|
|
Gets the instance of encoding handler. This function implements a singleton pattern.
Definition at line 88 of file cr-enc-handler.c. References CREncHandler. Referenced by cr_input_new_from_buf(). |
|
Given an encoding name (called an alias name) the function returns the matching encoding type.
Definition at line 115 of file cr-enc-handler.c. References CR_BAD_PARAM_ERROR, CR_ENCODING_NOT_FOUND_ERROR, CR_OK, CRStatus, CREncAlias::encoding, name, and CREncAlias::name. |
|
Definition at line 41 of file cr-enc-handler.h. Referenced by cr_enc_handler_get_instance(), and cr_input_new_from_buf(). |
|
Definition at line 43 of file cr-enc-handler.h. |
|
Definition at line 54 of file cr-enc-handler.h. |
|
Definition at line 48 of file cr-enc-handler.h. |
|
Definition at line 59 of file cr-enc-handler.h. |