Move declarations around
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 14 Jul 2011 03:18:53 +0000 (23:18 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 14 Jul 2011 20:55:35 +0000 (16:55 -0400)
So g_unichar API comes before g_utf8.

glib/gunicode.h

index a0ed2d9..ca0569e 100644 (file)
@@ -279,6 +279,13 @@ 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;
 
+gboolean g_unichar_get_mirror_char (gunichar ch,
+                                    gunichar *mirrored_ch);
+
+GUnicodeScript g_unichar_get_script (gunichar ch) G_GNUC_CONST;
+
+/* Validate a Unicode character */
+gboolean g_unichar_validate (gunichar ch) G_GNUC_CONST;
 
 /* Pairwise canonical compose/decompose */
 gboolean g_unichar_compose (gunichar  a,
@@ -301,6 +308,7 @@ void g_unicode_canonical_ordering (gunichar *string,
 gunichar *g_unicode_canonical_decomposition (gunichar  ch,
                                             gsize    *result_len) G_GNUC_MALLOC;
 
+
 /* Array of skip-bytes-per-initial character.
  */
 GLIB_VAR const gchar * const g_utf8_skip;
@@ -393,9 +401,6 @@ gboolean g_utf8_validate (const gchar  *str,
                           gssize        max_len,  
                           const gchar **end);
 
-/* Validate a Unicode character */
-gboolean g_unichar_validate (gunichar ch) G_GNUC_CONST;
-
 gchar *g_utf8_strup   (const gchar *str,
                       gssize       len) G_GNUC_MALLOC;
 gchar *g_utf8_strdown (const gchar *str,
@@ -425,11 +430,6 @@ gchar *g_utf8_collate_key (const gchar *str,
 gchar *g_utf8_collate_key_for_filename (const gchar *str,
                                        gssize       len) G_GNUC_MALLOC;
 
-gboolean g_unichar_get_mirror_char (gunichar ch,
-                                    gunichar *mirrored_ch);
-
-GUnicodeScript g_unichar_get_script (gunichar ch) G_GNUC_CONST;
-
 
 /* private */