mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 09:23:34 +00:00
Revert fmt::merge
This commit is contained in:
parent
52bf72787f
commit
37838a49ec
@ -137,17 +137,14 @@ std::vector<std::string> fmt::split(const std::string& source, std::initializer_
|
||||
|
||||
std::string fmt::merge(std::vector<std::string> source, const std::string& separator)
|
||||
{
|
||||
if (!source.size())
|
||||
return "";
|
||||
|
||||
std::string result;
|
||||
|
||||
for (int i = 0; i < source.size() - 1; ++i)
|
||||
for (auto &s : source)
|
||||
{
|
||||
result += source[i] + separator;
|
||||
result += s + separator;
|
||||
}
|
||||
|
||||
return result + source[source.size() - 1];
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string fmt::merge(std::initializer_list<std::vector<std::string>> sources, const std::string& separator)
|
||||
@ -167,4 +164,4 @@ std::string fmt::tolower(std::string source)
|
||||
std::transform(source.begin(), source.end(), source.begin(), ::tolower);
|
||||
|
||||
return source;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user