10 #if defined(WMTK_ENABLED_CPP20)
12 return std::ranges::views::split(view,
"."sv) |
13 std::views::transform([](
const auto& r) noexcept -> std::string_view {
14 return std::string_view(r.begin(), r.end());
18 std::vector<std::string> tokens;
20 tokens.emplace_back(
"");
23 std::string v = std::string(view);
24 std::istringstream iss(v);
26 if(v.size() > 0 && v[0] ==
'.') {
27 tokens.emplace_back(
"");
29 while (std::getline(iss, token,
'.')) {
31 tokens.push_back(token);
auto split_path(const std::string_view &view)