From cfaf3ab71bd17c2dce555ee71e7d93e4077ff4b9 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Wed, 22 Jan 2025 11:10:46 +0800 Subject: [PATCH] fix inconsistent indent space --- src/util/string.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/util/string.h b/src/util/string.h index 24fa3d293..d40e39b95 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -311,23 +311,23 @@ inline std::vector > str_split( const std::basic_string_view &strv, T delimiter) { - std::vector> output; - size_t first = 0; + std::vector> 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; }