diff src/util.h @ 5515:439a05a6b409

[gaim-migrate @ 5914] This makes the manual browser setting good. -You can have multiple %s's in a browser command (I don't know why you would want to, but you can) -It doesn't double-free memory and cause gaim to crash -If there is no %s, it adds the URL to the end of the command (it did this before, I'm just re-iterating that it still works) -It's fewer lines of code and it's cleaner, I think committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 25 May 2003 18:35:24 +0000
parents 3c7748b24410
children 6f35b80c5ffa
line wrap: on
line diff
--- a/src/util.h	Sun May 25 17:06:30 2003 +0000
+++ b/src/util.h	Sun May 25 18:35:24 2003 +0000
@@ -332,4 +332,15 @@
  */
 gint gaim_utf8_strcasecmp(const gchar *a, const gchar *b);
 
+/**
+ * Given a string, this replaces one substring with another
+ * and returns a newly allocated string.
+ *
+ * @param string The string from which to replace stuff.
+ * @param delimiter The substring you want replaced.
+ * @param replacement The substring you want inserted in place 
+ *        of the delimiting substring.
+ */
+gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, const gchar *replacement);
+
 #endif /* _GAIM_UTIL_H_ */