Mercurial > minori
comparison include/core/strings.h @ 322:c32467cd06bb
core/strings: add Strings::Translate function as tr() -> ToUtf8String
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 22:15:53 -0400 |
parents | 1b5c04268d6a |
children | a0aa8c8c4307 |
comparison
equal
deleted
inserted
replaced
321:8141f409d52c | 322:c32467cd06bb |
---|---|
19 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); | 19 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter); |
20 std::vector<std::string> Split(const std::string& text, const std::string& delimiter); | 20 std::vector<std::string> Split(const std::string& text, const std::string& delimiter); |
21 | 21 |
22 /* Substring removal functions */ | 22 /* Substring removal functions */ |
23 void ReplaceAll(std::string& string, std::string_view find, std::string_view replace); | 23 void ReplaceAll(std::string& string, std::string_view find, std::string_view replace); |
24 void SanitizeLineEndings(std::string& string); | |
25 void RemoveHtmlTags(std::string& string); | |
26 void ParseHtmlEntities(std::string& string); | |
27 void NormalizeUnicode(std::string& string); | 24 void NormalizeUnicode(std::string& string); |
28 void NormalizeAnimeTitle(std::string& string); | 25 void NormalizeAnimeTitle(std::string& string); |
29 | 26 |
30 /* stupid HTML bullshit */ | 27 /* stupid HTML bullshit */ |
31 void TextifySynopsis(std::string& string); | 28 void TextifySynopsis(std::string& string); |
71 void RemoveLeadingChars(std::string& s, const char c); | 68 void RemoveLeadingChars(std::string& s, const char c); |
72 void RemoveTrailingChars(std::string& s, const char c); | 69 void RemoveTrailingChars(std::string& s, const char c); |
73 | 70 |
74 bool BeginningMatchesSubstring(const std::string& str, const std::string& sub); | 71 bool BeginningMatchesSubstring(const std::string& str, const std::string& sub); |
75 | 72 |
73 std::string Translate(const char* str); | |
74 | |
76 }; // namespace Strings | 75 }; // namespace Strings |
77 | 76 |
78 #endif // MINORI_CORE_STRINGS_H_ | 77 #endif // MINORI_CORE_STRINGS_H_ |