Make g_utf8_make_valid public

Based on a patch by Simon van der Linden and rebased onto current GLib,
with improved documentation loosely based on Telepathy's
tp_utf8_make_valid().

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=591603
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=610969
Reviewed-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Simon McVittie
2016-10-13 12:42:09 +01:00
committed by Simon McVittie
parent 01bfa16986
commit c46dbd4752
6 changed files with 36 additions and 19 deletions

View File

@@ -885,9 +885,8 @@ GLIB_AVAILABLE_IN_ALL
gchar *g_utf8_collate_key_for_filename (const gchar *str,
gssize len) G_GNUC_MALLOC;
/* private */
gchar *_g_utf8_make_valid (const gchar *name);
GLIB_AVAILABLE_IN_2_52
gchar *g_utf8_make_valid (const gchar *str);
G_END_DECLS