00001 /* 00002 This file is part of libextractor. 00003 (C) 2004 Vidyut Samanta and Christian Grothoff 00004 00005 libextractor is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published 00007 by the Free Software Foundation; either version 2, or (at your 00008 option) any later version. 00009 00010 libextractor is distributed in the hope that it will be useful, but 00011 WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with libextractor; see the file COPYING. If not, write to the 00017 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef CONVERT_H 00022 #define CONVERT_H 00023 00024 #include "platform.h" 00025 #include "extractor.h" 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 00032 /** 00033 * Convert the len characters long character sequence 00034 * given in input that is in the given charset 00035 * to UTF-8. 00036 * @return the converted string (0-terminated) 00037 */ 00038 char * EXTRACTOR_common_convert_to_utf8(const char * input, 00039 size_t len, 00040 const char * charset); 00041 00042 #ifdef __cplusplus 00043 } 00044 #endif 00045 00046 #endif
1.5.1