![]() |
![]() |
![]() |
Libcroco Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
CREncHandler; CREncHandler * cr_enc_handler_get_instance (enum CREncoding a_enc
); enum CRStatus cr_enc_handler_resolve_enc_alias (const guchar *a_alias_name
,enum CREncoding *a_enc
); 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
);
CREncHandler * cr_enc_handler_get_instance (enum CREncoding a_enc
);
Gets the instance of encoding handler. This function implements a singleton pattern.
|
the encoding of the Handler. |
Returns : |
the instance of CREncHandler. |
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.
|
the encoding name. |
|
output param. The returned encoding type or 0 if the alias is not supported. |
Returns : |
CR_OK upon successfull completion, an error code otherwise. |
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.
|
the current instance of CREncHandler. |
|
the input buffer to convert. |
|
in/out parameter. The len of the input buffer to convert. After return, contains the number of bytes actually consumed. |
|
output parameter. The converted output buffer. Must be freed by the buffer. |
|
output parameter. The length of the output buffer. |
Returns : |
CR_OK upon successfull completion, an error code otherwise. |