1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Update iregex-gregex.c

add 2 comments about new_string
This commit is contained in:
ailin-nemui 2017-06-05 10:23:16 +02:00 committed by GitHub
parent 00354c3651
commit 48899a123d

View File

@ -60,7 +60,9 @@ i_regex_unref (Regex *regex)
}
/* if new_string is present, the caller must free new_string.
otherwise, g_match_info_get_string must not be used. */
otherwise, g_match_info_get_string must not be used.
if string is not vali utf8, new_string will be assigned
a similar, but valid utf8, string */
gboolean
i_regex_match (const Regex *regex,
const gchar *string,
@ -105,6 +107,9 @@ strlen_pua_oddly(const char *str)
return ret;
}
/* new_string should be passed in here from the i_regex_match call.
The start_pos and end_pos will then be calculated as if they were on
the original string */
gboolean
i_match_info_fetch_pos (const MatchInfo *match_info,
gint match_num,