handle torrents with duplicate filenames

This commit is contained in:
Arvid Norberg
2009-06-26 16:20:57 +00:00
parent 356db54dce
commit 10eb3fa00f
6 changed files with 40 additions and 15 deletions

View File

@@ -111,6 +111,17 @@ namespace libtorrent
return true;
}
bool string_equal_no_case(char const* s1, char const* s2)
{
while (to_lower(*s1) == to_lower(*s2))
{
if (*s1 == 0) return true;
++s1;
++s2;
}
return false;
}
std::string unescape_string(std::string const& s, error_code& ec)
{
std::string ret;