comparison src/core/strings.cc @ 100:f5940a575d83

track/constants: add many more video formats
author Paper <mrpapersonic@gmail.com>
date Fri, 03 Nov 2023 09:43:04 -0400
parents 503bc1547d49
children c537996cf67b
comparison
equal deleted inserted replaced
99:503bc1547d49 100:f5940a575d83
74 {"&reg;", "®"}, 74 {"&reg;", "®"},
75 {"&rsquo;", "’"} // Haibane Renmei, AniList 75 {"&rsquo;", "’"} // Haibane Renmei, AniList
76 }; 76 };
77 77
78 for (const auto& item : map) 78 for (const auto& item : map)
79 if (string.find(item.first) != std::string::npos) 79 string = ReplaceAll(string, item.first, item.second);
80 string = ReplaceAll(string, item.first, item.second);
81 return string; 80 return string;
82 } 81 }
83 82
84 /* removes stupid HTML stuff */ 83 /* removes stupid HTML stuff */
85 std::string TextifySynopsis(const std::string& string) { 84 std::string TextifySynopsis(const std::string& string) {