[pango] Use g_unichar_get_script directly



commit 0de37310ff335d49d8003dfb4008932142ec2bde
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 12 18:13:40 2015 -0400

    Use g_unichar_get_script directly
    
    Instead of going through a wrapper.

 pango/break.c        |    2 +-
 pango/pango-script.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 27857c0..1cc735c 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -743,7 +743,7 @@ pango_default_break (const gchar   *text,
            PangoScript script;
            WordBreakType WB_type;
 
-           script = pango_script_for_unichar (wc);
+           script = g_unichar_get_script (wc);
 
            /* Find the WordBreakType of wc */
            WB_type = WB_Other;
diff --git a/pango/pango-script.c b/pango/pango-script.c
index e892440..43be3fa 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -266,7 +266,7 @@ pango_script_iter_next (PangoScriptIter *iter)
       PangoScript sc;
       int pair_index;
 
-      sc = pango_script_for_unichar (ch);
+      sc = g_unichar_get_script (ch);
       if (sc != PANGO_SCRIPT_COMMON)
        pair_index = -1;
       else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]