diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-06-05 10:23:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 10:23:16 +0200 |
commit | 48899a123d68051fbc73acb8ad151e89fdcb6b31 (patch) | |
tree | 0cbfcc2ad0a116df4af3f484d6fc49f57cf522ef /src/core/iregex-gregex.c | |
parent | 00354c365187cecb9bc3ce3c3b3482e32d04729a (diff) | |
download | irssi-48899a123d68051fbc73acb8ad151e89fdcb6b31.zip |
Update iregex-gregex.c
add 2 comments about new_string
Diffstat (limited to 'src/core/iregex-gregex.c')
-rw-r--r-- | src/core/iregex-gregex.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/iregex-gregex.c b/src/core/iregex-gregex.c index 1a77d5b3..4a1623b9 100644 --- a/src/core/iregex-gregex.c +++ b/src/core/iregex-gregex.c @@ -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, |