add latin-1 wrapper for html_entities
[libi2ncommon] / src / stringfunc.hxx
index be1c4a8..06d85f9 100644 (file)
@@ -179,15 +179,6 @@ std::string join_string(
 );
 
 /*
- * provide instantiation wrappers for ABI compatibility
- */
-std::string join_string (const std::list<std::string> &l,
-                         const std::string &d = "\n");
-
-std::string join_string (const std::vector<std::string> &l,
-                         const std::string &d = "\n");
-
-/*
 ** conversions:
 */
 
@@ -367,6 +358,11 @@ std::string smart_html_entities(const std::string &input);
 std::string html_entities(std::string str);
 std::string html_entities_to_console(std::string str);
 
+inline std::string html_entities_iso (const std::string &str)
+{
+    return html_entities (iso_to_utf8 (str));
+}
+
 typedef std::pair<std::string::size_type, std::string::size_type> CommentZone;
 std::vector<CommentZone> find_html_comments(const std::string &str);
 void remove_html_comments(std::string &str);