9
+ − 1 #ifndef __core__strings_h
+ − 2 #define __core__strings_h
15
+ − 3
9
+ − 4 #include <string>
+ − 5 #include <vector>
15
+ − 6
10
+ − 7 namespace Strings {
15
+ − 8
9
+ − 9 /* Implode function: takes a vector of strings and turns it
+ − 10 into a string, separated by delimiters. */
+ − 11 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter);
+ − 12
+ − 13 /* Substring removal functions */
+ − 14 std::string ReplaceAll(const std::string& string, const std::string& find, const std::string& replace);
+ − 15 std::string SanitizeLineEndings(const std::string& string);
+ − 16 std::string RemoveHtmlTags(const std::string& string);
+ − 17
+ − 18 /* stupid HTML bullshit */
+ − 19 std::string TextifySynopsis(const std::string& string);
15
+ − 20
+ − 21 std::string ToUpper(const std::string& string);
+ − 22 std::string ToLower(const std::string& string);
+ − 23
36
+ − 24 }; // namespace Strings
9
+ − 25 #endif // __core__strings_h