Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-utf8.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Michael Zucchi <notzed@ximian.com>
4  *
5  *  Copyright 2003 Ximian, Inc. (www.ximian.com)
6  *
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.
11  *
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.
16  *
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.
20  *
21  */
22
23 #ifndef _CAMEL_UTF8_H
24 #define _CAMEL_UTF8_H
25
26 G_BEGIN_DECLS
27
28 void camel_utf8_putc(unsigned char **ptr, guint32 c);
29 guint32 camel_utf8_getc(const unsigned char **ptr);
30 guint32 camel_utf8_getc_limit (const unsigned char **ptr, const unsigned char *end);
31
32 /* utility func for utf8 gstrings */
33 void g_string_append_u(GString *out, guint32 c);
34
35 /* convert utf7 to/from utf8, actually this is modified IMAP utf7 */
36 char *camel_utf7_utf8(const char *ptr);
37 char *camel_utf8_utf7(const char *ptr);
38
39 /* convert ucs2 to/from utf8 */
40 char *camel_utf8_ucs2(const char *ptr);
41 char *camel_ucs2_utf8(const char *ptr);
42
43 G_END_DECLS
44
45 #endif /* ! _CAMEL_UTF8_H */