| 16 | } |
| 17 | |
| 18 | std::string string_tolower(const std::string& str) { |
| 19 | std::string copy = str; |
| 20 | std::transform(copy.begin(), copy.end(), copy.begin(), [](char ch) { |
| 21 | return (char)::tolower(int(ch)); |
| 22 | }); |
| 23 | return copy; |
| 24 | } |
| 25 | |
| 26 | std::string string_replace(std::string subject, const std::string& search, const std::string& replace) { |
| 27 | size_t pos = 0; |
no test coverage detected