## GtkSourceUtils GtkSourceUtils — Utilities functions |

## Synopsis

    #include <gtksourceview/gtksource.h>

    gchar *             gtk_source_utils_unescape_search_text
                                                            (const gchar *text);
    gchar *             gtk_source_utils_escape_search_text (const gchar *text);

## Description

Utilities functions.

## Details

### gtk_source_utils_unescape_search_text ()

    gchar *             gtk_source_utils_unescape_search_text
                                                            (const gchar *text);

Use this function before `gtk_source_search_settings_set_search_text()`, to unescape certain sequences of characters: \n, \r, \t and \\. The purpose is to easily write those characters in a search entry.

See also: `gtk_source_utils_escape_search_text()`.

`text` : | the text to unescape.
Returns : | the unescaped `text`.

Since 3.10

### gtk_source_utils_escape_search_text ()

    gchar *             gtk_source_utils_escape_search_text (const gchar *text);

Use this function after `gtk_source_search_settings_get_search_text()`, to escape certain characters: \n, \r, \t and \.

See also: `gtk_source_utils_unescape_search_text()`.

`text` : | the text to escape.
Returns : | the escaped `text`.

Since 3.10