mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fix inconsistent indent space
This commit is contained in:
parent
09c5778184
commit
cfaf3ab71b
1 changed files with 12 additions and 12 deletions
|
@ -311,23 +311,23 @@ inline std::vector<std::basic_string_view<T> > str_split(
|
|||
const std::basic_string_view<T> &strv,
|
||||
T delimiter)
|
||||
{
|
||||
std::vector<std::basic_string_view<T>> output;
|
||||
size_t first = 0;
|
||||
std::vector<std::basic_string_view<T>> output;
|
||||
size_t first = 0;
|
||||
|
||||
while (first < strv.size())
|
||||
{
|
||||
const auto second = strv.find_first_of(delimiter, first);
|
||||
while (first < strv.size())
|
||||
{
|
||||
const auto second = strv.find_first_of(delimiter, first);
|
||||
|
||||
if (first != second)
|
||||
output.push_back(strv.substr(first, second - first));
|
||||
if (first != second)
|
||||
output.push_back(strv.substr(first, second - first));
|
||||
|
||||
if (second == std::string_view::npos)
|
||||
break;
|
||||
if (second == std::string_view::npos)
|
||||
break;
|
||||
|
||||
first = second + 1;
|
||||
}
|
||||
first = second + 1;
|
||||
}
|
||||
|
||||
return output;
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue