[vala] glib-2.0: add binding for g_unichar_get_script and GUnicodeScript enum



commit 527ad1202d4a84c4d42d94cec4cf514fca933f02
Author: Derek Dai <daiderek gmail com>
Date:   Thu May 13 22:10:18 2010 -0700

    glib-2.0: add binding for g_unichar_get_script and GUnicodeScript enum
    
    Fixes bug 618428.

 vapi/glib-2.0.vapi |   88 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index c689e30..0f21224 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -735,6 +735,7 @@ public struct unichar {
 	public int xdigit_value ();
 	public UnicodeType type ();
 	public UnicodeBreakType break_type ();
+	public UnicodeScript get_script();
 
 	public int to_utf8 (string? outbuf);
 
@@ -746,6 +747,93 @@ public struct unichar {
 	public unichar clamp (unichar low, unichar high);
 }
 
+[CCode (cname = "GUnicodeScript", cprefix = "G_UNICODE_SCRIPT_", has_type_id = false)]
+public enum UnicodeScript {
+	INVALID_CODE,
+	COMMON,
+	INHERITED,
+	ARABIC,
+	ARMENIAN,
+	BENGALI,
+	BOPOMOFO,
+	CHEROKEE,
+	COPTIC,
+	CYRILLIC,
+	DESERET,
+	DEVANAGARI,
+	ETHIOPIC,
+	GEORGIAN,
+	GOTHIC,
+	GREEK,
+	GUJARATI,
+	GURMUKHI,
+	HAN,
+	HANGUL,
+	HEBREW,
+	HIRAGANA,
+	KANNADA,
+	KATAKANA,
+	KHMER,
+	LAO,
+	LATIN,
+	MALAYALAM,
+	MONGOLIAN,
+	MYANMAR,
+	OGHAM,
+	OLD_ITALIC,
+	ORIYA,
+	RUNIC,
+	SINHALA,
+	SYRIAC,
+	TAMIL,
+	TELUGU,
+	THAANA,
+	THAI,
+	TIBETAN,
+	CANADIAN_ABORIGINAL,
+	YI,
+	TAGALOG,
+	HANUNOO,
+	BUHID,
+	TAGBANWA,
+
+	BRAILLE,
+	CYPRIOT,
+	LIMBU,
+	OSMANYA,
+	SHAVIAN,
+	LINEAR_B,
+	TAI_LE,
+	UGARITIC,
+
+	NEW_TAI_LUE,
+	BUGINESE,
+	GLAGOLITIC,
+	TIFINAGH,
+	SYLOTI_NAGRI,
+	OLD_PERSIAN,
+	KHAROSHTHI,
+
+	UNKNOWN,
+	BALINESE,
+	CUNEIFORM,
+	PHOENICIAN,
+	PHAGS_PA,
+	NKO,
+
+	KAYAH_LI,
+	LEPCHA,
+	REJANG,
+	SUNDANESE,
+	SAURASHTRA,
+	CHAM,
+	OL_CHIKI,
+	VAI,
+	CARIAN,
+	LYCIAN,
+	LYDIAN
+}
+
 [CCode (cname = "GUnicodeType", cprefix = "G_UNICODE_", has_type_id = false)]
 public enum UnicodeType {
 	CONTROL,



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