libcdio
0.82
|
00001 /* 00002 $Id: utf8.h,v 1.2 2008/03/25 15:59:09 karl Exp $ 00003 00004 Copyright (C) 2008 Rocky Bernstein <rocky@gnu.org> 00005 Copyright (C) 2006 Burkhard Plaum <plaum@ipf.uni-stuttgart.de> 00006 00007 This program is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation, either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 /* UTF-8 support */ 00021 00022 00023 #include <cdio/types.h> 00024 00028 typedef struct cdio_charset_coverter_s cdio_charset_coverter_t; 00029 00036 cdio_charset_coverter_t * 00037 cdio_charset_converter_create(const char * src_charset, 00038 const char * dst_charset); 00039 00044 void cdio_charset_converter_destroy(cdio_charset_coverter_t*cnv); 00045 00058 bool cdio_charset_convert(cdio_charset_coverter_t*cnv, 00059 char * src, int src_len, 00060 char ** dst, int * dst_len); 00061 00074 bool cdio_charset_from_utf8(cdio_utf8_t * src, char ** dst, 00075 int * dst_len, const char * dst_charset); 00076 00090 bool cdio_charset_to_utf8(char *src, size_t src_len, cdio_utf8_t **dst, 00091 const char * src_charset); 00092