diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-03-03 22:39:40 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-03-03 23:18:45 +0800 |
commit | 3e4bea3436209cca9ce685fdbacec7fcc11f1388 (patch) | |
tree | 6ac9467c31864790b6a9559bddedb45ef37a68ef /libempathy-gtk/empathy-string-parser.h | |
parent | 4f990cd2192a39f0b6111fc9aad1848aaeda11c4 (diff) | |
download | gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar.gz gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar.bz2 gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar.lz gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar.xz gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.tar.zst gsoc2013-empathy-3e4bea3436209cca9ce685fdbacec7fcc11f1388.zip |
Make empathy_string_replace_link and empathy_string_replace_escaped public
The code is moved from empathy-theme-adium.c
Diffstat (limited to 'libempathy-gtk/empathy-string-parser.h')
-rw-r--r-- | libempathy-gtk/empathy-string-parser.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-string-parser.h b/libempathy-gtk/empathy-string-parser.h index 696545b65..db646d60b 100644 --- a/libempathy-gtk/empathy-string-parser.h +++ b/libempathy-gtk/empathy-string-parser.h @@ -69,6 +69,19 @@ empathy_string_match_all (const gchar *text, EmpathyStringParser *sub_parsers, gpointer user_data); +/* Replace functions assume user_data is a GString */ +void +empathy_string_replace_link (const gchar *text, + gssize len, + gpointer match_data, + gpointer user_data); + +void +empathy_string_replace_escaped (const gchar *text, + gssize len, + gpointer match_data, + gpointer user_data); + G_END_DECLS #endif /* __EMPATHY_STRING_PARSER_H__ */ |