| 229 */ |
229 */ |
| 230 static inline gboolean |
230 static inline gboolean |
| 231 purple_strequal(const gchar *left, const gchar *right) |
231 purple_strequal(const gchar *left, const gchar *right) |
| 232 { |
232 { |
| 233 return (g_strcmp0(left, right) == 0); |
233 return (g_strcmp0(left, right) == 0); |
| |
234 } |
| |
235 |
| |
236 /** |
| |
237 * purple_strempty: |
| |
238 * @str: A string to check if it is empty. |
| |
239 * |
| |
240 * Determines if @str is empty. That is, if it is %NULL or an empty string. |
| |
241 * |
| |
242 * Returns: %TRUE if the @str is %NULL or an empty string. |
| |
243 * |
| |
244 * Since: 3.0.0 |
| |
245 */ |
| |
246 static inline gboolean |
| |
247 purple_strempty(const char *str) { |
| |
248 return (str == NULL || str[0] == '\0'); |
| 234 } |
249 } |
| 235 |
250 |
| 236 /** |
251 /** |
| 237 * purple_normalize: |
252 * purple_normalize: |
| 238 * @account: The account the string belongs to, or NULL if you do |
253 * @account: The account the string belongs to, or NULL if you do |