Forgotten file
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 27 Dec 2006 05:10:54 +0000 (05:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 27 Dec 2006 05:10:54 +0000 (05:10 +0000)
glib/gunicollate.c

index 13a8ed5..494d0a4 100644 (file)
@@ -54,11 +54,11 @@ msc_strxfrm_wrapper (char       *string1,
  * @str2: a UTF-8 encoded string
  * 
  * Compares two strings for ordering using the linguistically
- * correct rules for the current locale. When sorting a large
- * number of strings, it will be significantly faster to
- * obtain collation keys with g_utf8_collate_key() and 
- * compare the keys with strcmp() when 
- * sorting instead of sorting the original strings.
+ * correct rules for the <link linkend="setlocale">current locale</link>. 
+ * When sorting a large number of strings, it will be significantly 
+ * faster to obtain collation keys with g_utf8_collate_key() and 
+ * compare the keys with strcmp() when sorting instead of sorting 
+ * the original strings.
  * 
  * Return value: &lt; 0 if @str1 compares before @str2, 
  *   0 if they compare equal, &gt; 0 if @str1 compares after @str2.
@@ -184,9 +184,13 @@ utf8_encode (char *buf, wchar_t val)
  * Converts a string into a collation key that can be compared
  * with other collation keys produced by the same function using 
  * strcmp(). 
+ *
  * The results of comparing the collation keys of two strings 
- * with strcmp() will always be the same as 
- * comparing the two original keys with g_utf8_collate().
+ * with strcmp() will always be the same as comparing the two 
+ * original keys with g_utf8_collate().
+ * 
+ * Note that this function depends on the 
+ * <link linkend="setlocale">current locale</link>.
  * 
  * Return value: a newly allocated string. This string should
  *   be freed with g_free() when you are done with it.
@@ -302,6 +306,9 @@ g_utf8_collate_key (const gchar *str,
  * "event.h" instead of "event.c" "event.h" "eventgenerator.c". Also, we
  * would like to treat numbers intelligently so that "file1" "file10" "file5"
  * is sorted as "file1" "file5" "file10".
+ * 
+ * Note that this function depends on the 
+ * <link linkend="setlocale">current locale</link>.
  *
  * Return value: a newly allocated string. This string should
  *   be freed with g_free() when you are done with it.