diff include/core/strings.h @ 9:5c0397762b53

INCOMPLETE: megacommit :)
author Paper <mrpapersonic@gmail.com>
date Sun, 10 Sep 2023 03:59:16 -0400
parents
children 4b198a111713
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/core/strings.h	Sun Sep 10 03:59:16 2023 -0400
@@ -0,0 +1,18 @@
+#ifndef __core__strings_h
+#define __core__strings_h
+#include <string>
+#include <vector>
+namespace StringUtils {
+/* Implode function: takes a vector of strings and turns it
+   into a string, separated by delimiters. */
+std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter);
+
+/* Substring removal functions */
+std::string ReplaceAll(const std::string& string, const std::string& find, const std::string& replace);
+std::string SanitizeLineEndings(const std::string& string);
+std::string RemoveHtmlTags(const std::string& string);
+
+/* stupid HTML bullshit */
+std::string TextifySynopsis(const std::string& string);
+};	   // namespace StringUtils
+#endif // __core__strings_h
\ No newline at end of file