Mercurial > minori
comparison include/core/strings.h @ 15:cde8f67a7c7d
*: update, megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 22:36:08 -0400 |
parents | 4b198a111713 |
children | 2743011a6042 |
comparison
equal
deleted
inserted
replaced
14:a29c9402faf0 | 15:cde8f67a7c7d |
---|---|
1 #ifndef __core__strings_h | 1 #ifndef __core__strings_h |
2 #define __core__strings_h | 2 #define __core__strings_h |
3 | |
3 #include <string> | 4 #include <string> |
4 #include <vector> | 5 #include <vector> |
6 | |
5 namespace Strings { | 7 namespace Strings { |
8 | |
6 /* Implode function: takes a vector of strings and turns it | 9 /* Implode function: takes a vector of strings and turns it |
7 into a string, separated by delimiters. */ | 10 into a string, separated by delimiters. */ |
8 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); | 11 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); |
9 | 12 |
10 /* Substring removal functions */ | 13 /* Substring removal functions */ |
12 std::string SanitizeLineEndings(const std::string& string); | 15 std::string SanitizeLineEndings(const std::string& string); |
13 std::string RemoveHtmlTags(const std::string& string); | 16 std::string RemoveHtmlTags(const std::string& string); |
14 | 17 |
15 /* stupid HTML bullshit */ | 18 /* stupid HTML bullshit */ |
16 std::string TextifySynopsis(const std::string& string); | 19 std::string TextifySynopsis(const std::string& string); |
17 }; // namespace StringUtils | 20 |
21 std::string ToUpper(const std::string& string); | |
22 std::string ToLower(const std::string& string); | |
23 | |
24 }; // namespace StringUtils | |
18 #endif // __core__strings_h | 25 #endif // __core__strings_h |