1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Authors: Jeffrey Stedfast <fejj@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."
27 #ifndef CAMEL_STRING_UTILS_H
28 #define CAMEL_STRING_UTILS_H
34 gint camel_strcase_equal (gconstpointer a, gconstpointer b);
35 guint camel_strcase_hash (gconstpointer v);
37 void camel_string_list_free (GList *string_list);
39 gchar *camel_strstrcase (const gchar *haystack, const gchar *needle);
41 const gchar *camel_strdown (gchar *str);
42 gchar camel_tolower (gchar c);
43 gchar camel_toupper (gchar c);
45 const gchar *camel_pstring_add (gchar *string, gboolean own);
46 const gchar *camel_pstring_strdup (const gchar *string);
47 void camel_pstring_free (const gchar *string);
48 const gchar * camel_pstring_peek (const gchar *string);
49 void camel_pstring_dump_stat (void);
53 #endif /* CAMEL_STRING_UTILS_H */