gmerlin
charset.h
1/*****************************************************************
2 * gmerlin - a general purpose multimedia framework and applications
3 *
4 * Copyright (c) 2001 - 2012 Members of the Gmerlin project
5 * gmerlin-general@lists.sourceforge.net
6 * http://gmerlin.sourceforge.net
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * *****************************************************************/
21
22
23/* Charset utilities (charset.c) */
24
36typedef struct bg_charset_converter_s bg_charset_converter_t;
37
48bg_charset_converter_create(const char * in_charset,
49 const char * out_charset);
50
56
66 const char * in_string, int in_len,
67 int * out_len);
68
void bg_charset_converter_destroy(bg_charset_converter_t *cnv)
Destroy a charset converter.
char * bg_convert_string(bg_charset_converter_t *cnv, const char *in_string, int in_len, int *out_len)
Convert a string.
bg_charset_converter_t * bg_charset_converter_create(const char *in_charset, const char *out_charset)
Create a charset converter.
struct bg_charset_converter_s bg_charset_converter_t
Opaque charset converter.
Definition charset.h:36