vala r2071 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2071 - in trunk: . vapi
- Date: Fri, 28 Nov 2008 16:44:53 +0000 (UTC)
Author: juergbi
Date: Fri Nov 28 16:44:53 2008
New Revision: 2071
URL: http://svn.gnome.org/viewvc/vala?rev=2071&view=rev
Log:
2008-11-28 JÃrg Billeter <j bitron ch>
* vapi/glib-2.0.vapi:
Add string.contains method
Modified:
trunk/ChangeLog
trunk/vapi/glib-2.0.vapi
Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi (original)
+++ trunk/vapi/glib-2.0.vapi Fri Nov 28 16:44:53 2008
@@ -796,6 +796,10 @@
/* internal method */
public string substring (long offset, long len);
+ public bool contains (string needle) {
+ return this.str (needle) != null;
+ }
+
public string replace (string old, string replacement) {
try {
var regex = new GLib.Regex (GLib.Regex.escape_string (old));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]