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

Function need_encoding

src/escape_string.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 bool need_encoding(char const* str, int const len)
179 {
180 for (int i = 0; i < len; ++i)
181 {
182 if (std::strchr(unreserved_chars, *str) == nullptr || *str == 0)
183 return true;
184 ++str;
185 }
186 return false;
187 }
188
189 void convert_path_to_posix(std::string& path)
190 {

Callers 3

TORRENT_TESTFunction · 0.85
TORRENT_TESTFunction · 0.85
maybe_url_encodeFunction · 0.85

Calls

no outgoing calls

Tested by 2

TORRENT_TESTFunction · 0.68
TORRENT_TESTFunction · 0.68