From: David King Date: Fri, 17 Feb 2012 14:54:31 +0000 (+0000) Subject: docs: Elaborate replacement for g_strncasecmp X-Git-Tag: 2.35.9~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a13464df86ac2c68c52686451ce250f2e454d3a;p=platform%2Fupstream%2Fglib.git docs: Elaborate replacement for g_strncasecmp https://bugzilla.gnome.org/show_bug.cgi?id=568405 --- diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 9d192a3..6fd2ebd 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -1859,9 +1859,10 @@ g_strcasecmp (const gchar *s1, * it doesn't work on many encodings at all, including UTF-8, EUC-JP, * etc. * - * There are therefore two replacement functions: g_ascii_strncasecmp(), + * There are therefore two replacement techniques: g_ascii_strncasecmp(), * which only works on ASCII and is not locale-sensitive, and - * g_utf8_casefold(), which is good for case-insensitive sorting of UTF-8. + * g_utf8_casefold() followed by strcmp() on the resulting strings, which is + * good for case-insensitive sorting of UTF-8. **/ gint g_strncasecmp (const gchar *s1,