[vala] glib-2.0: Add g_strdelimit binding
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add g_strdelimit binding
- Date: Sun, 16 Aug 2009 14:22:42 +0000 (UTC)
commit bd0868bc405e2b12b7c4c6977e968750eafdf217
Author: Jürg Billeter <j bitron ch>
Date: Sun Aug 16 16:21:53 2009 +0200
glib-2.0: Add g_strdelimit binding
Fixes bug 530396.
vapi/glib-2.0.vapi | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 0f4ea7a..f0b4519 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -900,6 +900,14 @@ public class string {
result._strip ();
return result;
}
+
+ [CCode (cname = "g_strdelimit")]
+ public weak string _delimit (string delimiters, char new_delimiter);
+ public string delimit (string delimiters, char new_delimiter) {
+ string result = this.dup ();
+ result._delimit (delimiters, new_delimiter);
+ return result;
+ }
[CCode (cname = "g_str_hash")]
public uint hash ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]