gimputils

Name

gimputils -- Simple utility functions that don't have their own category.

Synopsis



gchar*      gimp_strescape                  (const gchar *source,
                                             const gchar *exceptions);

Description

Right now all you find here is a function taken from glib-1.3 that we need in several places. Since Gimp doesn't rely on glib-1.3, we provide it here.

Details

gimp_strescape ()

gchar*      gimp_strescape                  (const gchar *source,
                                             const gchar *exceptions);

Escapes special characters in a string, by inserting a '\' before them. If the list of characters is NULL, a suitable set of exceptions is used.

If glib > 1.3 is installed this function is identical to g_strescape(). For systems using glib-1.2 this function provides the added functionality from glib-1.3.

source : A string to escape special characters in.
exceptions : A string holding all characters that are to be escaped.
Returns : A newly allocated copy of the string, with all special characters escaped using a backslash.