comparison 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
comparison
equal deleted inserted replaced
8:b1f73678ef61 9:5c0397762b53
1 #ifndef __core__strings_h
2 #define __core__strings_h
3 #include <string>
4 #include <vector>
5 namespace StringUtils {
6 /* Implode function: takes a vector of strings and turns it
7 into a string, separated by delimiters. */
8 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter);
9
10 /* Substring removal functions */
11 std::string ReplaceAll(const std::string& string, const std::string& find, const std::string& replace);
12 std::string SanitizeLineEndings(const std::string& string);
13 std::string RemoveHtmlTags(const std::string& string);
14
15 /* stupid HTML bullshit */
16 std::string TextifySynopsis(const std::string& string);
17 }; // namespace StringUtils
18 #endif // __core__strings_h