Enforce backslash at the end of emulated drives paths

This commit is contained in:
Eladash 2021-04-10 08:06:40 +03:00 committed by Ivan
parent 11824b3916
commit 56d34e0e80
5 changed files with 62 additions and 33 deletions

View file

@ -24,8 +24,7 @@ inline void strcpy_trunc(D& dst, const T& src)
namespace fmt
{
std::string replace_first(const std::string& src, const std::string& from, const std::string& to);
std::string replace_all(const std::string& src, const std::string& from, const std::string& to);
std::string replace_all(std::string_view src, std::string_view from, std::string_view to, usz count = -1);
template <usz list_size>
std::string replace_all(std::string src, const std::pair<std::string, std::string> (&list)[list_size])