glib r7915 - trunk/gio
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7915 - trunk/gio
- Date: Thu, 26 Feb 2009 15:03:11 +0000 (UTC)
Author: alexl
Date: Thu Feb 26 15:03:11 2009
New Revision: 7915
URL: http://svn.gnome.org/viewvc/glib?rev=7915&view=rev
Log:
2009-02-26 Alexander Larsson <alexl redhat com>
Bug 543183 â Clarify docs for g_file_has_prefix
* gfile.c: (g_file_has_prefix):
Clarify how the prefix matching works.
Modified:
trunk/gio/ChangeLog
trunk/gio/gfile.c
Modified: trunk/gio/gfile.c
==============================================================================
--- trunk/gio/gfile.c (original)
+++ trunk/gio/gfile.c Thu Feb 26 15:03:11 2009
@@ -685,6 +685,8 @@
*
* Checks whether @file has the prefix specified by @prefix. In other word,
* if the names of inital elements of @file<!-- -->s pathname match @prefix.
+ * Only full pathname elements are matched, so a path like /foo is not
+ * considered a prefix of /foobar, only of /foo/bar.
*
* This call does no i/o, as it works purely on names. As such it can
* sometimes return %FALSE even if @file is inside a @prefix (from a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]