#include "cr-enc-handler.h"
#include "cr-utils.h"
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | CREncAlias |
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_alias_name, enum CREncoding *a_enc) |
Given an encoding name (called an alias name) the function returns the matching encoding type. | |
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. |
Definition in file cr-enc-handler.c.
|
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, CREncAlias::name, and name. |