[vala] glib-2.0: add unichar.to_string method



commit 592d71f9561650f71f83419a7f7c18e489c2ac5c
Author: Frederik Zipp <fzipp gmx de>
Date:   Mon Jun 21 00:52:00 2010 -0700

    glib-2.0: add unichar.to_string method

 vapi/glib-2.0.vapi |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index dafb6d2..3021ad9 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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")]



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