Mercurial > minori
diff include/core/strings.h @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 19:48:38 -0400 |
parents | 862d0d8619f6 |
children | 3ec7804abf17 |
line wrap: on
line diff
--- a/include/core/strings.h Mon Apr 01 18:11:15 2024 -0400 +++ b/include/core/strings.h Wed Apr 03 19:48:38 2024 -0400 @@ -21,13 +21,13 @@ std::vector<std::string> Split(const std::string& text, const std::string& delimiter); /* Substring removal functions */ -std::string ReplaceAll(std::string string, const std::string& find, const std::string& replace); -std::string SanitizeLineEndings(const std::string& string); -std::string RemoveHtmlTags(std::string string); -std::string ParseHtmlEntities(std::string string); +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); /* stupid HTML bullshit */ -std::string TextifySynopsis(const std::string& string); +void TextifySynopsis(std::string& string); std::string ToUpper(const std::string& string); std::string ToLower(const std::string& string);