Mercurial > minori
comparison include/core/strings.h @ 98:582b2fca1561
strings: parse HTML entities when reading synopsis, make the
toupper and tolower functions more sane
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 02 Nov 2023 15:22:02 -0400 |
| parents | c69230dc2b5d |
| children | f5940a575d83 |
comparison
equal
deleted
inserted
replaced
| 97:18979b066284 | 98:582b2fca1561 |
|---|---|
| 11 /* Implode function: takes a vector of strings and turns it | 11 /* Implode function: takes a vector of strings and turns it |
| 12 into a string, separated by delimiters. */ | 12 into a string, separated by delimiters. */ |
| 13 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); | 13 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); |
| 14 | 14 |
| 15 /* Substring removal functions */ | 15 /* Substring removal functions */ |
| 16 std::string ReplaceAll(const std::string& string, const std::string& find, const std::string& replace); | 16 std::string ReplaceAll(std::string string, const std::string& find, const std::string& replace); |
| 17 std::string SanitizeLineEndings(const std::string& string); | 17 std::string SanitizeLineEndings(const std::string& string); |
| 18 std::string RemoveHtmlTags(const std::string& string); | 18 std::string RemoveHtmlTags(const std::string& string); |
| 19 std::string ParseHtmlEntities(const std::string& string); | |
| 19 | 20 |
| 20 /* stupid HTML bullshit */ | 21 /* stupid HTML bullshit */ |
| 21 std::string TextifySynopsis(const std::string& string); | 22 std::string TextifySynopsis(const std::string& string); |
| 22 | 23 |
| 23 std::string ToUpper(const std::string& string); | 24 std::string ToUpper(const std::string& string); |
| 24 std::string ToLower(const std::string& string); | 25 std::string ToLower(const std::string& string); |
| 25 | 26 |
| 27 /* functions that make the way we convert from and to | |
| 28 different string formats universal */ | |
| 26 std::wstring ToWstring(const std::string& string); | 29 std::wstring ToWstring(const std::string& string); |
| 27 std::wstring ToWstring(const QString& string); | 30 std::wstring ToWstring(const QString& string); |
| 28 std::string ToUtf8String(const std::wstring& wstring); | 31 std::string ToUtf8String(const std::wstring& wstring); |
| 29 std::string ToUtf8String(const QString& string); | 32 std::string ToUtf8String(const QString& string); |
| 30 QString ToQString(const std::string& string); | 33 QString ToQString(const std::string& string); |
