9
|
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 |