MCPcopy Create free account
hub / github.com/AshampooSystems/boden / split

Function split

framework/foundation/src/String.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 std::tuple<std::string_view, std::string_view> split(const std::string_view &view, std::string::value_type token)
20 {
21 auto pos = view.find(token);
22 if (pos == std::string_view::npos) {
23 return {view, std::string_view()};
24 }
25
26 return {view.substr(0, pos), view.substr(pos + 1)};
27 }
28
29 void ltrim(std::string &s)
30 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected