utf8.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2006 Burkhard Plaum <plaum@ipf.uni-stuttgart.de>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301 USA.
00018 */
00019 /* UTF-8 support */
00020 
00021 
00022 #include <cdio/types.h>
00023 
00027 typedef struct cdio_charset_coverter_s cdio_charset_coverter_t;
00028 
00035 cdio_charset_coverter_t *
00036 cdio_charset_converter_create(const char * src_charset,
00037                               const char * dst_charset);
00038 
00043 void cdio_charset_converter_destroy(cdio_charset_coverter_t*cnv);
00044 
00057 bool cdio_charset_convert(cdio_charset_coverter_t*cnv,
00058                           char * src, int src_len,
00059                           char ** dst, int * dst_len);
00060 
00073 bool cdio_charset_from_utf8(cdio_utf8_t * src, char ** dst,
00074                             int * dst_len, const char * dst_charset);
00075 
00089 bool cdio_charset_to_utf8(char *src, size_t src_len, cdio_utf8_t **dst,
00090                           const char * src_charset);
00091 

Generated on Fri Oct 27 06:38:08 2006 for libcdio by  doxygen 1.4.6