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

Function strip_string

src/string_util.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185#endif
186
187 string_view strip_string(string_view in)
188 {
189 while (!in.empty() && is_space(in.front()))
190 in.remove_prefix(1);
191
192 while (!in.empty() && is_space(in.back()))
193 in.remove_suffix(1);
194 return in;
195 }
196
197 // this parses the string that's used as the listen_interfaces setting.
198 // it is a comma-separated list of IP or device names with ports. For

Callers 3

TORRENT_TESTFunction · 0.85
parse_listen_interfacesFunction · 0.85

Calls 3

is_spaceFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45

Tested by 1

TORRENT_TESTFunction · 0.68