mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Merge pull request #14219 from Sintendo/stringutils-drop-tabs2spaces
StringUtils: Drop TabsToSpaces
This commit is contained in:
commit
ed2fe134aa
@ -16,7 +16,6 @@
|
||||
#include <locale>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
@ -365,17 +364,6 @@ std::vector<std::string> SplitString(const std::string& str, const char delim)
|
||||
return output;
|
||||
}
|
||||
|
||||
std::string TabsToSpaces(int tab_size, std::string str)
|
||||
{
|
||||
const std::string spaces(tab_size, ' ');
|
||||
|
||||
size_t i = 0;
|
||||
while (str.npos != (i = str.find('\t')))
|
||||
str.replace(i, 1, spaces);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
std::string ReplaceAll(std::string result, std::string_view src, std::string_view dest)
|
||||
{
|
||||
size_t pos = 0;
|
||||
|
||||
@ -180,8 +180,6 @@ std::from_chars_result FromChars(std::string_view sv, std::floating_point auto&
|
||||
}
|
||||
} // namespace Common
|
||||
|
||||
std::string TabsToSpaces(int tab_size, std::string str);
|
||||
|
||||
std::vector<std::string> SplitString(const std::string& str, char delim);
|
||||
|
||||
// "C:/Windows/winhelp.exe" to "C:/Windows/", "winhelp", ".exe"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user