1 /* $Id$ */
2 /*-
3  * Copyright (c) 2003      Olivier Fourdan <fourdan@xfce.org>
4  * Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
5  * All rights reserved.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library 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 GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301 USA
21  */
22 
23 #if !defined(LIBXFCE4UTIL_INSIDE_LIBXFCE4UTIL_H) && !defined(LIBXFCE4UTIL_COMPILATION)
24 #error "Only <libxfce4util/libxfce4util.h> can be included directly, this file may disappear or change contents"
25 #endif
26 
27 #ifndef __XFCE_UTF8_H__
28 #define __XFCE_UTF8_H__
29 
30 #include <glib.h>
31 
32 G_BEGIN_DECLS
33 
34 gchar *xfce_utf8_remove_controls  (gchar       *str,
35                                    gssize       max_len,
36                                    const gchar *end);
37 
38 gchar *xfce_utf8_strndup          (const gchar *src,
39                                    gssize       max_len) G_GNUC_MALLOC;
40 
41 G_END_DECLS
42 
43 #endif /* !__XFCE_UTF8_H__ */
44