From: Jürg Billeter Date: Mon, 19 Feb 2007 21:15:07 +0000 (+0000) Subject: more string functions (patch by Cayle Graumann) X-Git-Tag: VALA_0_0_6~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=503ed8030301496746e5e67fc1df20dd2fb4becf;p=thirdparty%2Fvala.git more string functions (patch by Cayle Graumann) 2007-02-19 Jürg Billeter * vapi/glib-2.0.vala: more string functions (patch by Cayle Graumann) svn path=/trunk/; revision=190 --- diff --git a/vala/ChangeLog b/vala/ChangeLog index 0bc6e50de..0396e74dc 100644 --- a/vala/ChangeLog +++ b/vala/ChangeLog @@ -1,4 +1,8 @@ -2007-02-18 Raffaele Sandrini +2007-02-19 Jürg Billeter + + * vapi/glib-2.0.vala: more string functions (patch by Cayle Graumann) + +2007-02-18 Raffaele Sandrini * vala/valainterfacewriter.vala: fix indentation for class definitions diff --git a/vala/vapi/glib-2.0.vala b/vala/vapi/glib-2.0.vala index 92edd9be8..d67280737 100644 --- a/vala/vapi/glib-2.0.vala +++ b/vala/vapi/glib-2.0.vala @@ -214,10 +214,17 @@ public struct string { [CCode (cname = "g_utf8_strup")] public ref string up (long len = -1); + [CCode (cname = "g_utf8_strdown")] + public ref string down (long len = -1); [CCode (cname = "g_utf8_casefold")] public ref string casefold (long len = -1); [CCode (cname = "g_utf8_collate")] public int collate (string str2); + + [CCode (cname="g_strchomp")] + public string chomp(); + [CCode (cname="g_strchug")] + public string chug(); [CCode (cname = "g_str_hash")] public uint hash ();