summaryrefslogtreecommitdiff
path: root/gallery-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'gallery-utils.h')
-rw-r--r--gallery-utils.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gallery-utils.h b/gallery-utils.h
index dd97663..53c82c0 100644
--- a/gallery-utils.h
+++ b/gallery-utils.h
@@ -24,10 +24,9 @@
/*
* str_replace: replace substring 'search' with a 'replace' string
* - multiple occurences of the string are replaced
- * - specify 'exclude_when' if you want to skip replace when a string found at the place of 'search'
* - reallocates the original string
*/
-void str_replace (char **dst, const char *search, const char *replace, const char *exclude_when);
+void str_replace (char **dst, const char *search, const char *replace);
/*
* copy_file: copy file from src to dst
@@ -45,3 +44,10 @@ char *make_string (const char* substr, const int count);
* - returns newly allocated string
*/
void fix_entities (char **str);
+
+/*
+ * remove_tags: remove all occurences of tags beginning with tag_begin and ending with tag_end
+ * - e.g. remove_tags (&x, "<!--", "-->") will remove all comments
+ * - returns newly allocated string
+ */
+void remove_tags (char **str, const char *tag_begin, const char *tag_end);