~ubuntu-branches/ubuntu/jaunty/geany/jaunty

« back to all changes in this revision

Viewing changes to src/utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2007-02-25 21:12:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070225211213-jk4d4vxtgji0rj74
Tags: 0.10.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      utils.h - this file is part of Geany, a fast and lightweight IDE
3
3
 *
4
 
 *      Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
 
4
 *      Copyright 2005-2007 Enrico Tröger <enrico.troeger@uvena.de>
 
5
 *      Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
5
6
 *
6
7
 *      This program is free software; you can redistribute it and/or modify
7
8
 *      it under the terms of the GNU General Public License as published by
17
18
 *      along with this program; if not, write to the Free Software
18
19
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20
 *
20
 
 * $Id: utils.h 1119 2006-12-18 13:04:18Z ntrel $
 
21
 * $Id: utils.h 1270 2007-02-12 18:42:15Z eht16 $
21
22
 */
22
23
 
23
24
 
135
136
 * Replaces \\, \r, \n, \t and \uXXX by their real counterparts */
136
137
gboolean utils_str_replace_escape(gchar *string);
137
138
 
138
 
gchar *utils_scan_unicode_bom(const gchar *string);
139
 
 
140
 
gboolean utils_is_unicode_charset(const gchar *string);
141
 
 
142
139
/* Wraps a string in place, replacing a space with a newline character.
143
140
 * wrapstart is the minimum position to start wrapping or -1 for default */
144
141
gboolean utils_wrap_string(gchar *string, gint wrapstart);
149
146
/* Simple wrapper for g_locale_to_utf8; returns a copy of locale_text on failure. */
150
147
gchar *utils_get_utf8_from_locale(const gchar *locale_text);
151
148
 
 
149
/* frees all passed pointers if they are non-NULL, the first argument is nothing special,
 
150
 * it will also be freed, the list should be ended with NULL */
 
151
void utils_free_pointers(gpointer first, ...);
 
152
 
152
153
#endif