24#ifndef __M_TEXTCODEC_H__
25#define __M_TEXTCODEC_H__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
struct M_buf M_buf_t
Definition: m_buf.h:77
struct M_parser M_parser_t
Definition: m_parser.h:52
const char * M_textcodec_codec_to_str(M_textcodec_codec_t codec)
M_textcodec_error_t M_textcodec_encode_buf(M_buf_t *buf, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_error_t M_textcodec_decode(char **out, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_error_t M_textcodec_decode_parser(M_parser_t *parser, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_error_t M_textcodec_encode_parser(M_parser_t *parser, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_codec_t
Definition: m_textcodec.h:103
M_textcodec_error_t
Definition: m_textcodec.h:149
M_bool M_textcodec_error_is_error(M_textcodec_error_t err)
M_textcodec_error_t M_textcodec_decode_buf(M_buf_t *buf, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_error_t M_textcodec_encode(char **out, const char *in, M_textcodec_ehandler_t ehandler, M_textcodec_codec_t codec) M_WARN_UNUSED_RESULT
M_textcodec_ehandler_t
Definition: m_textcodec.h:95
M_textcodec_codec_t M_textcodec_codec_from_str(const char *s)
@ M_TEXTCODEC_PUNYCODE
Definition: m_textcodec.h:142
@ M_TEXTCODEC_UNKNOWN
Definition: m_textcodec.h:104
@ M_TEXTCODEC_UTF8
Definition: m_textcodec.h:105
@ M_TEXTCODEC_ISO8859_3
Definition: m_textcodec.h:121
@ M_TEXTCODEC_ISO8859_10
Definition: m_textcodec.h:128
@ M_TEXTCODEC_ISO8859_16
Definition: m_textcodec.h:133
@ M_TEXTCODEC_ISO8859_13
Definition: m_textcodec.h:130
@ M_TEXTCODEC_CP037
Definition: m_textcodec.h:107
@ M_TEXTCODEC_PERCENT_FORMMIN
Definition: m_textcodec.h:139
@ M_TEXTCODEC_CP1257
Definition: m_textcodec.h:117
@ M_TEXTCODEC_PERCENT_URLMIN
Definition: m_textcodec.h:136
@ M_TEXTCODEC_ISO8859_4
Definition: m_textcodec.h:122
@ M_TEXTCODEC_CP1256
Definition: m_textcodec.h:116
@ M_TEXTCODEC_ISO8859_1
Definition: m_textcodec.h:119
@ M_TEXTCODEC_PERCENT_FORM
Definition: m_textcodec.h:135
@ M_TEXTCODEC_ISO8859_6
Definition: m_textcodec.h:124
@ M_TEXTCODEC_ISO8859_7
Definition: m_textcodec.h:125
@ M_TEXTCODEC_ISO8859_14
Definition: m_textcodec.h:131
@ M_TEXTCODEC_ISO8859_15
Definition: m_textcodec.h:132
@ M_TEXTCODEC_CP1258
Definition: m_textcodec.h:118
@ M_TEXTCODEC_CP1254
Definition: m_textcodec.h:114
@ M_TEXTCODEC_CP1252
Definition: m_textcodec.h:112
@ M_TEXTCODEC_PERCENT_URL
Definition: m_textcodec.h:134
@ M_TEXTCODEC_ASCII
Definition: m_textcodec.h:106
@ M_TEXTCODEC_ISO8859_2
Definition: m_textcodec.h:120
@ M_TEXTCODEC_ISO8859_11
Definition: m_textcodec.h:129
@ M_TEXTCODEC_ISO8859_8
Definition: m_textcodec.h:126
@ M_TEXTCODEC_CP1255
Definition: m_textcodec.h:115
@ M_TEXTCODEC_CP1253
Definition: m_textcodec.h:113
@ M_TEXTCODEC_ISO8859_5
Definition: m_textcodec.h:123
@ M_TEXTCODEC_CP1250
Definition: m_textcodec.h:110
@ M_TEXTCODEC_QUOTED_PRINTABLE
Definition: m_textcodec.h:144
@ M_TEXTCODEC_ISO8859_9
Definition: m_textcodec.h:127
@ M_TEXTCODEC_CP874
Definition: m_textcodec.h:109
@ M_TEXTCODEC_CP1251
Definition: m_textcodec.h:111
@ M_TEXTCODEC_CP500
Definition: m_textcodec.h:108
@ M_TEXTCODEC_ERROR_BADINPUT
Definition: m_textcodec.h:153
@ M_TEXTCODEC_ERROR_FAIL
Definition: m_textcodec.h:152
@ M_TEXTCODEC_ERROR_INVALID_PARAM
Definition: m_textcodec.h:155
@ M_TEXTCODEC_ERROR_SUCCESS
Definition: m_textcodec.h:150
@ M_TEXTCODEC_ERROR_SUCCESS_EHANDLER
Definition: m_textcodec.h:151
@ M_TEXTCODEC_EHANDLER_IGNORE
Definition: m_textcodec.h:98
@ M_TEXTCODEC_EHANDLER_REPLACE
Definition: m_textcodec.h:97
@ M_TEXTCODEC_EHANDLER_FAIL
Definition: m_textcodec.h:96