Improve docs
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 11 Jan 2009 04:58:25 +0000 (04:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 11 Jan 2009 04:58:25 +0000 (04:58 +0000)
svn path=/trunk/; revision=7802

ChangeLog
glib/gregex.c

index 9ab43bf..e58ffbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-01-10  Matthias Clasen  <mclasen@redhat.com>
 
+       Bug 566573 – g_match_info_fetch_pos docs
+
+       * glib/gregex.c: Mention that positions are in bytes. 
+       Proposed by Christian Persch.
+
+2009-01-10  Matthias Clasen  <mclasen@redhat.com>
+
        Bug 566569 – gregex docs clarification
 
        * glib/gregex.c: Copy the warning about @string to all
index 6ad873a..ba9174a 100644 (file)
@@ -794,7 +794,7 @@ g_match_info_fetch (const GMatchInfo *match_info,
  * @start_pos: pointer to location where to store the start position
  * @end_pos: pointer to location where to store the end position
  *
- * Retrieves the position of the @match_num<!-- -->'th capturing 
+ * Retrieves the position in bytes of the @match_num<!-- -->'th capturing 
  * parentheses. 0 is the full text of the match, 1 is the first 
  * paren set, 2 the second, and so on.
  *
@@ -917,7 +917,7 @@ g_match_info_fetch_named (const GMatchInfo *match_info,
  * @start_pos: pointer to location where to store the start position
  * @end_pos: pointer to location where to store the end position
  *
- * Retrieves the position of the capturing parentheses named @name.
+ * Retrieves the position in bytes of the capturing parentheses named @name.
  *
  * If @name is a valid sub pattern name but it didn't match anything 
  * (e.g. sub pattern "X", matching "b" against "(?P&lt;X&gt;a)?b")