No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / src / msgl-iconv.h
blob44acb71bdc404749403f63edb2676b098bc2aa02
1 /* Message list character set conversion.
2 Copyright (C) 2001-2003 Free Software Foundation, Inc.
3 Written by Bruno Haible <haible@clisp.cons.org>, 2001.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #ifndef _MSGL_ICONV_H
20 #define _MSGL_ICONV_H
22 #if HAVE_ICONV
23 #include <iconv.h>
24 #endif
26 #include "message.h"
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 #if HAVE_ICONV
35 /* Converts the STRING through the conversion descriptor CD. */
36 extern char *convert_string (iconv_t cd, const char *string);
37 #endif
39 /* Converts the message list MLP to the (already canonicalized) encoding
40 CANON_TO_CODE. The (already canonicalized) encoding before conversion
41 can be passed as CANON_FROM_CODE; if NULL is passed instead, the
42 encoding is looked up in the header entry. */
43 extern void
44 iconv_message_list (message_list_ty *mlp,
45 const char *canon_from_code,
46 const char *canon_to_code,
47 const char *from_filename);
49 /* Converts all the message lists in MDLP to the encoding TO_CODE. */
50 extern msgdomain_list_ty *
51 iconv_msgdomain_list (msgdomain_list_ty *mdlp,
52 const char *to_code,
53 const char *from_filename);
56 #ifdef __cplusplus
58 #endif
61 #endif /* _MSGL_ICONV_H */