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

Function string_equal_no_case

src/string_util.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 bool string_equal_no_case(string_view s1, string_view s2)
107 {
108 if (s1.size() != s2.size()) return false;
109 return std::equal(s1.begin(), s1.end(), s2.begin()
110 , [] (char const c1, char const c2)
111 { return to_lower(c1) == to_lower(c2); });
112 }
113
114 // generate a url-safe random string
115 void url_random(span<char> dest)

Callers 8

TORRENT_TESTFunction · 0.85
parse_magnet_uriFunction · 0.85
find_control_urlFunction · 0.85
has_tracker_query_stringFunction · 0.85
same_originFunction · 0.85
top_tagsMethod · 0.85

Calls 5

equalFunction · 0.85
to_lowerFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TORRENT_TESTFunction · 0.68