Mercurial > pidgin
comparison src/util.h @ 10258:357d4fa1bfbe
[gaim-migrate @ 11400]
This is the IRC fallback encoding patch and gaim_utf8_salvage function
that just hit oldstatus. If CVS didn't suck, I wouldn't have to
generate two commits for this. :-P
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Wed, 24 Nov 2004 06:39:47 +0000 |
| parents | 7ff9b8b22e7d |
| children | 8d42237564f6 |
comparison
equal
deleted
inserted
replaced
| 10257:b98f856e2e5e | 10258:357d4fa1bfbe |
|---|---|
| 691 * @return The UTF-8 string, or @c NULL if it could not be converted. | 691 * @return The UTF-8 string, or @c NULL if it could not be converted. |
| 692 */ | 692 */ |
| 693 gchar *gaim_utf8_try_convert(const char *str); | 693 gchar *gaim_utf8_try_convert(const char *str); |
| 694 | 694 |
| 695 /** | 695 /** |
| 696 * Salvages the valid UTF-8 characters from a string, replacing any | |
| 697 * invalid characters with a filler character (currently hardcoded to | |
| 698 * '?'). | |
| 699 * | |
| 700 * @param str The source string. | |
| 701 * | |
| 702 * @return A valid UTF-8 string. | |
| 703 */ | |
| 704 gchar *gaim_utf8_salvage(const char *str); | |
| 705 | |
| 706 /** | |
| 696 * Compares two UTF-8 strings. | 707 * Compares two UTF-8 strings. |
| 697 * | 708 * |
| 698 * @param a The first string. | 709 * @param a The first string. |
| 699 * @param b The second string. | 710 * @param b The second string. |
| 700 * | 711 * |
