Make g_unichar_combining_class() public. (#453998)
authorBehdad Esfahbod <behdad@gnome.org>
Thu, 19 Jul 2007 13:46:05 +0000 (13:46 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Thu, 19 Jul 2007 13:46:05 +0000 (13:46 +0000)
2007-07-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/gunicodeprivate.h:
        * glib/gunidecomp.c (g_unichar_combining_class):
        * glib/guniprop.c (has_more_above):
        Make g_unichar_combining_class() public. (#453998)

svn path=/trunk/; revision=5644

ChangeLog
docs/reference/ChangeLog
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/gunicode.h
glib/gunicodeprivate.h
glib/gunidecomp.c
glib/guniprop.c

index 837d14dd038feee6c7c1b7d1c6eedc516ed92abd..dadc463356b759f5e30cd60bb6f18774963b72d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-07-19  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/glib.symbols:
+       * glib/gunicode.h:
+       * glib/gunicodeprivate.h:
+       * glib/gunidecomp.c (g_unichar_combining_class):
+       * glib/guniprop.c (has_more_above):
+       Make g_unichar_combining_class() public. (#453998)
+
 Fri Jul 13 01:01:46 2007  Tim Janik  <timj@imendio.com>
 
        * glib/gthread.[hc]: more atomic ops pointer cast fixes. this time it'll
index 1dc958a50c719526b7547cc7a591031211751e66..0ece3ebaa7c1ecc5ae5236d18e36658decb07597 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-19  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/glib-sections.txt:
+
 2007-07-12  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.13.7 ===
index 9b611f5eca637cd94ef4639a4815419d5564c33c..7f75ad6834be7817fbb1c5b5cc36dcfb1497d111 100644 (file)
@@ -2420,6 +2420,7 @@ GUnicodeType
 g_unichar_type
 GUnicodeBreakType
 g_unichar_break_type
+g_unichar_combining_class
 g_unicode_canonical_ordering
 g_unicode_canonical_decomposition
 g_unichar_get_mirror_char
index 5ab58539f42a51acd4d1912c8423b9ac67155b11..f54b992eb5ff404bac3eb2a3715781c13ea0d4aa 100644 (file)
@@ -1291,6 +1291,7 @@ g_utf8_collate_key_for_filename G_GNUC_MALLOC
 #if IN_FILE(__G_UNIDECOMP_C__)
 g_unicode_canonical_decomposition G_GNUC_MALLOC
 g_unicode_canonical_ordering
+g_unicode_combining_class
 g_utf8_normalize
 #endif
 #endif
index 47478d05168adc8a9207573b975503bf0f7c954b..41157bd803ce21cf6836e8a7c69bd615c60b6b44 100644 (file)
@@ -236,6 +236,9 @@ GUnicodeType g_unichar_type (gunichar c) G_GNUC_CONST;
 /* Return the line break property for a given character */
 GUnicodeBreakType g_unichar_break_type (gunichar c) G_GNUC_CONST;
 
+/* Returns the combining class for a given character */
+gint g_unichar_combining_class (gunichar uc); G_GNUC_CONST;
+
 
 /* Compute canonical ordering of a string in-place.  This rearranges
    decomposed characters in the string according to their combining
index 01aa5cba25027cac69a27d29fac444d7b6850fa5..70539d4fc67be18ebd107cea73ae63aa548ca5a3 100644 (file)
@@ -29,7 +29,6 @@ G_GNUC_INTERNAL gunichar *_g_utf8_normalize_wc
                                (const gchar    *str,
                                gssize          max_len,
                                GNormalizeMode  mode);
-G_GNUC_INTERNAL gint      _g_unichar_combining_class (gunichar uc);
 
 G_END_DECLS
 
index 21fd7c649242cd9fdbec0288d2fe45b2f9c41da1..713742b81f6e1cef315112a8b1c5de1198a4f144 100644 (file)
       ? CC_PART2 (((Char) - 0xe0000) >> 8, (Char) & 0xff) \
       : 0))
 
+/**
+ * g_unichar_combining_class:
+ * @c: a Unicode character
+ * 
+ * Determines the canonical combining class of a Unicode character.
+ * 
+ * Return value: the combining class of the character.
+ *
+ * Since: 2.14
+ **/
 gint
-_g_unichar_combining_class (gunichar uc)
+g_unichar_combining_class (gunichar uc)
 {
   return COMBINING_CLASS (uc);
 }
index c66a02c86d92462e8813d65c27b23199deac5c57..5eb0f13c12bb16622218975546c053f5d2b1fe58 100644 (file)
@@ -970,7 +970,7 @@ has_more_above (const gchar *str)
 
   while (*p)
     {
-      combining_class = _g_unichar_combining_class (g_utf8_get_char (p));
+      combining_class = g_unichar_combining_class (g_utf8_get_char (p));
       if (combining_class == 230)
         return TRUE;
       else if (combining_class == 0)