MCPcopy Create free account
hub / github.com/arvidn/libtorrent / split_string

Function split_string

src/string_util.cpp:360–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 }
359
360 std::pair<string_view, string_view> split_string(string_view last, char const sep)
361 {
362 auto const pos = last.find(sep);
363 if (pos == string_view::npos) return {last, {}};
364 else return {last.substr(0, pos), last.substr(pos + 1)};
365 }
366
367 std::pair<string_view, string_view> split_string_quotes(string_view last, char const sep)
368 {

Callers 6

TORRENT_TESTFunction · 0.85
parse_magnet_uriFunction · 0.85
has_tracker_query_stringFunction · 0.85
lexically_relativeFunction · 0.85
read_lineMethod · 0.85

Calls 1

findMethod · 0.45

Tested by 1

TORRENT_TESTFunction · 0.68