Mercurial > pidgin
diff src/util.h @ 12813:547c199072c8
[gaim-migrate @ 15161]
- fixes to sametime administrative notification message dialog to make them
a little less obscure as to what the heck they are
- added an extra step to the sametime connection login between authenticating
and starting services
- fix to outgoing encoding of html formatted messages in sametime to use NCR
encoding
- addition of gaim_utf8_ncr_encode to util.h
- fix of minor possible (unlikely) memleak in gaim_utf8_ncr_decode
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Wed, 11 Jan 2006 03:07:01 +0000 |
parents | 54448bd2ccc7 |
children | 4229503f1cd9 |
line wrap: on
line diff
--- a/src/util.h Wed Jan 11 01:13:20 2006 +0000 +++ b/src/util.h Wed Jan 11 03:07:01 2006 +0000 @@ -637,6 +637,20 @@ gchar *gaim_strreplace(const char *string, const char *delimiter, const char *replacement); + +/** + * Given a string, this replaces any utf-8 substrings in that string with + * the corresponding numerical character reference, and returns a newly + * allocated string. + * + * @param in The string which might contain utf-8 substrings + * + * @return A new string, with utf-8 replaced with numerical character + * references, free this with g_free() +*/ +char *gaim_utf8_ncr_encode(const char *in); + + /** * Given a string, this replaces any numerical character references * in that string with the corresponding actual utf-8 substrings, @@ -649,6 +663,7 @@ */ char *gaim_utf8_ncr_decode(const char *in); + /** * Given a string, this replaces one substring with another * ignoring case and returns a newly allocated string.