"Fossies" - the Fresh Open Source Software Archive 
Member "libextractor-1.11/src/common/convert.h" (30 Jan 2021, 1484 Bytes) of package /linux/privat/libextractor-1.11.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "convert.h" see the
Fossies "Dox" file reference documentation.
1 /*
2 This file is part of libextractor.
3 Copyright (C) 2004 Vidyut Samanta and Christian Grothoff
4
5 libextractor is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 libextractor is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with libextractor; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef CONVERT_H
22 #define CONVERT_H
23
24 #include "platform.h"
25 #include "extractor.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31
32 /**
33 * Convert the 'len' characters long character sequence given in
34 * 'input' that is in the given 'charset' to UTF-8.
35 *
36 * @param input string to convert
37 * @param len number of bytes in input
38 * @param charset input character set
39 * @return the converted string (0-terminated), NULL on error
40 */
41 char *
42 EXTRACTOR_common_convert_to_utf8 (const char *input,
43 size_t len,
44 const char *charset);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif