1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Authors: Michael Zucchi <notzed@ximian.com>
5 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
24 #error "Only <camel/camel.h> can be included directly."
34 void camel_utf8_putc (guchar **ptr, guint32 c);
35 guint32 camel_utf8_getc (const guchar **ptr);
36 guint32 camel_utf8_getc_limit (const guchar **ptr, const guchar *end);
38 /* utility func for utf8 gstrings */
39 void g_string_append_u (GString *out, guint32 c);
41 /* convert utf7 to/from utf8, actually this is modified IMAP utf7 */
42 gchar *camel_utf7_utf8 (const gchar *ptr);
43 gchar *camel_utf8_utf7 (const gchar *ptr);
45 /* convert ucs2 to/from utf8 */
46 gchar *camel_utf8_ucs2 (const gchar *ptr);
47 gchar *camel_ucs2_utf8 (const gchar *ptr);
49 /* make valid utf8 string */
50 gchar *camel_utf8_make_valid (const gchar *text);
54 #endif /* CAMEL_UTF8_H */