comparison 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
comparison
equal deleted inserted replaced
259:0362f3c4534c 260:dd211ff68b36
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::string Implode(const std::set<std::string>& set, const std::string& delimiter); 20 std::string Implode(const std::set<std::string>& set, const std::string& delimiter);
21 std::vector<std::string> Split(const std::string& text, const std::string& delimiter); 21 std::vector<std::string> Split(const std::string& text, const std::string& delimiter);
22 22
23 /* Substring removal functions */ 23 /* Substring removal functions */
24 std::string ReplaceAll(std::string string, const std::string& find, const std::string& replace); 24 void ReplaceAll(std::string& string, std::string_view find, std::string_view replace);
25 std::string SanitizeLineEndings(const std::string& string); 25 void SanitizeLineEndings(std::string& string);
26 std::string RemoveHtmlTags(std::string string); 26 void RemoveHtmlTags(std::string& string);
27 std::string ParseHtmlEntities(std::string string); 27 void ParseHtmlEntities(std::string& string);
28 28
29 /* stupid HTML bullshit */ 29 /* stupid HTML bullshit */
30 std::string TextifySynopsis(const std::string& string); 30 void TextifySynopsis(std::string& string);
31 31
32 std::string ToUpper(const std::string& string); 32 std::string ToUpper(const std::string& string);
33 std::string ToLower(const std::string& string); 33 std::string ToLower(const std::string& string);
34 34
35 /* functions that make the way we convert from and to 35 /* functions that make the way we convert from and to