Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[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 (C) 1999-2008 Novell, Inc. (www.novell.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 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
24 #error "Only <camel/camel.h> can be included directly."
25 #endif
26
27 #ifndef CAMEL_UTF8_H
28 #define CAMEL_UTF8_H
29
30 #include <glib.h>
31
32 G_BEGIN_DECLS
33
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);
37
38 /* utility func for utf8 gstrings */
39 void g_string_append_u (GString *out, guint32 c);
40
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);
44
45 /* convert ucs2 to/from utf8 */
46 gchar *camel_utf8_ucs2 (const gchar *ptr);
47 gchar *camel_ucs2_utf8 (const gchar *ptr);
48
49 /* make valid utf8 string */
50 gchar *camel_utf8_make_valid (const gchar *text);
51
52 G_END_DECLS
53
54 #endif /* CAMEL_UTF8_H */