1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2000-2003 Ximian Inc.
5 * Authors: Michael Zucchi <notzed@ximian.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _CAMEL_CHARSET_MAP_H
23 #define _CAMEL_CHARSET_MAP_H
29 typedef struct _CamelCharset CamelCharset;
31 struct _CamelCharset {
36 void camel_charset_init(CamelCharset *);
37 void camel_charset_step(CamelCharset *, const char *in, int len);
39 const char *camel_charset_best_name (CamelCharset *);
42 const char *camel_charset_best(const char *in, int len);
44 const char *camel_charset_iso_to_windows (const char *isocharset);
48 #endif /* ! _CAMEL_CHARSET_MAP_H */