[glib/wip/doc-fixes: 3/8] docs: Elaborate replacement for g_strncasecmp
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/doc-fixes: 3/8] docs: Elaborate replacement for g_strncasecmp
- Date: Tue, 21 Feb 2012 00:36:40 +0000 (UTC)
commit a84618b7255431d2feb4c06d894b12f2431870ad
Author: David King <amigadave amigadave com>
Date: Fri Feb 17 14:54:31 2012 +0000
docs: Elaborate replacement for g_strncasecmp
https://bugzilla.gnome.org/show_bug.cgi?id=568405
glib/gstrfuncs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c
index 19365b2..e35288f 100644
--- a/glib/gstrfuncs.c
+++ b/glib/gstrfuncs.c
@@ -1851,9 +1851,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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]