]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add unichar.to_string method
authorFrederik Zipp <fzipp@gmx.de>
Mon, 21 Jun 2010 07:52:00 +0000 (00:52 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 21 Jun 2010 07:52:00 +0000 (00:52 -0700)
vapi/glib-2.0.vapi

index dafb6d2791210c083961f0b7fa9e1d0e3097ad1d..3021ad9063e42f5ca1a2c62107147a2e6f83f6a0 100644 (file)
@@ -739,6 +739,12 @@ public struct unichar {
 
        public int to_utf8 (string? outbuf);
 
+       public string? to_string () {
+               string str = (string) new char[7];
+               this.to_utf8 (str);
+               return str;
+       }
+
        [CCode (cname = "MIN")]
        public static unichar min (unichar a, unichar b);
        [CCode (cname = "MAX")]