diff --git a/ChangeLog b/ChangeLog index 9ab43bf58..e58ffbdc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-10 Matthias Clasen + + 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 Bug 566569 – gregex docs clarification diff --git a/glib/gregex.c b/glib/gregex.c index 6ad873a0a..ba9174af3 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -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<X>a)?b")