diff 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
line wrap: on
line diff
--- a/include/core/strings.h	Wed Jun 12 20:42:44 2024 -0400
+++ b/include/core/strings.h	Wed Jun 12 22:15:53 2024 -0400
@@ -21,9 +21,6 @@
 
 /* Substring removal functions */
 void ReplaceAll(std::string& string, std::string_view find, std::string_view replace);
-void SanitizeLineEndings(std::string& string);
-void RemoveHtmlTags(std::string& string);
-void ParseHtmlEntities(std::string& string);
 void NormalizeUnicode(std::string& string);
 void NormalizeAnimeTitle(std::string& string);
 
@@ -73,6 +70,8 @@
 
 bool BeginningMatchesSubstring(const std::string& str, const std::string& sub);
 
+std::string Translate(const char* str);
+
 }; // namespace Strings
 
 #endif // MINORI_CORE_STRINGS_H_