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

Function ltrim

src/string_util.cpp:393–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391 }
392
393 void ltrim(std::string& s)
394 {
395 while (!s.empty() && is_space(s.front()))
396 s.erase(s.begin());
397 }
398
399 std::string format_host_for_connect(std::string host, unsigned short const port)
400 {

Callers 1

parse_torrent_fileMethod · 0.85

Calls 5

is_spaceFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected