4 #include "gnome-recent-util.h"
6 /* ripped out of gedit2 */
8 gnome_recent_util_escape_underlines (const gchar* text)
15 g_return_val_if_fail (text != NULL, NULL);
17 length = strlen (text);
19 str = g_string_new ("");
27 next = g_utf8_next_char (p);
32 g_string_append (str, "__");
35 g_string_append_len (str, p, next - p);
42 return g_string_free (str, FALSE);