comparison libpurple/protocols/msn/msn-utils.c @ 15822:32c366eeeb99

sed -ie 's/gaim/purple/g'
author Sean Egan <seanegan@gmail.com>
date Mon, 19 Mar 2007 07:01:17 +0000
parents 8cf610a18481
children f2a4b05407d7
comparison
equal deleted inserted replaced
15821:84b0f9b23ede 15822:32c366eeeb99
1 /** 1 /**
2 * @file msn-utils.c Utility functions 2 * @file msn-utils.c Utility functions
3 * 3 *
4 * gaim 4 * purple
5 * 5 *
6 * Gaim is the legal property of its developers, whose names are too numerous 6 * Purple is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this 7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution. 8 * source distribution.
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by 11 * it under the terms of the GNU General Public License as published by
108 pre = g_string_append(pre, tag); 108 pre = g_string_append(pre, tag);
109 post = g_string_prepend(post, "</FONT>"); 109 post = g_string_prepend(post, "</FONT>");
110 } 110 }
111 } 111 }
112 112
113 cur = g_strdup(gaim_url_decode(pre->str)); 113 cur = g_strdup(purple_url_decode(pre->str));
114 g_string_free(pre, TRUE); 114 g_string_free(pre, TRUE);
115 115
116 if (pre_ret != NULL) 116 if (pre_ret != NULL)
117 *pre_ret = cur; 117 *pre_ret = cur;
118 else 118 else
119 g_free(cur); 119 g_free(cur);
120 120
121 cur = g_strdup(gaim_url_decode(post->str)); 121 cur = g_strdup(purple_url_decode(post->str));
122 g_string_free(post, TRUE); 122 g_string_free(post, TRUE);
123 123
124 if (post_ret != NULL) 124 if (post_ret != NULL)
125 *post_ret = cur; 125 *post_ret = cur;
126 else 126 else
127 g_free(cur); 127 g_free(cur);
128 } 128 }
129 129
130 /* 130 /*
131 * We need this because we're only supposed to encode spaces in the font 131 * We need this because we're only supposed to encode spaces in the font
132 * names. gaim_url_encode() isn't acceptable. 132 * names. purple_url_encode() isn't acceptable.
133 */ 133 */
134 static const char * 134 static const char *
135 encode_spaces(const char *str) 135 encode_spaces(const char *str)
136 { 136 {
137 static char buf[BUF_LEN]; 137 static char buf[BUF_LEN];