]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add GNormalizeMode and g_utf8_normalize bindings
authorAli Sabil <ali.sabil@gmail.com>
Tue, 30 Sep 2008 21:12:16 +0000 (21:12 +0000)
committerAli Sabil <asabil@src.gnome.org>
Tue, 30 Sep 2008 21:12:16 +0000 (21:12 +0000)
2008-09-30  Ali Sabil  <ali.sabil@gmail.com>

* vapi/glib-2.0.vapi:
Add GNormalizeMode and g_utf8_normalize bindings

svn path=/trunk/; revision=1816

ChangeLog
vapi/glib-2.0.vapi

index 932cb4991907aacee682a9fdf2a3a22e895ea9f5..fa46938254ff60d367a6bf91c12ca31eaf6f56e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-30  Ali Sabil  <ali.sabil@gmail.com>
+
+       * vapi/glib-2.0.vapi:
+
+       Add GNormalizeMode and g_utf8_normalize bindings
+
 2008-09-29  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodegenerator.vala:
index 39cbc116e72ad35594f9c99242dbe3880b8b3048..83b79ad85af555ceea357f3f6b07ce3428052900 100644 (file)
@@ -675,6 +675,19 @@ public enum UnicodeBreakType {
        HANGUL_LVT_SYLLABLE
 }
 
+[CCode (cname = "GNormalizeMode", cprefix = "G_NORMALIZE_", has_type_id = false)]
+public enum NormalizeMode {
+       DEFAULT,
+       NFD,
+       DEFAULT_COMPOSE,
+       NFC,
+       ALL,
+       NFKD,
+       ALL_COMPOSE,
+       NFKC
+}
+
+
 [Compact]
 [Immutable]
 [CCode (cname = "char", const_cname = "const char", copy_function = "g_strdup", free_function = "g_free", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string", type_signature = "s")]
@@ -732,6 +745,8 @@ public class string {
        public string reverse (int len = -1);
        [CCode (cname = "g_utf8_validate")]
        public bool validate (long max_len = -1, out string end = null);
+       [CCode (cname = "g_utf8_normalize")]
+       public string normalize (long len = -1, NormalizeMode mode = NormalizeMode.DEFAULT);
        
        [CCode (cname = "g_utf8_strup")]
        public string up (long len = -1);