=== modified file 'dcpp/HashManager.cpp' --- dcpp/HashManager.cpp 2008-03-01 23:16:58 +0000 +++ dcpp/HashManager.cpp 2008-06-18 20:44:47 +0000 @@ -93,8 +93,8 @@ void HashManager::HashStore::addFile(const string& aFileName, uint32_t aTimeStamp, const TigerTree& tth, bool aUsed) { addTree(tth); - string fname = Text::toLower(Util::getFileName(aFileName)); - string fpath = Text::toLower(Util::getFilePath(aFileName)); + string fname = Util::getFileName(aFileName); + string fpath = Util::getFilePath(aFileName); FileInfoList& fileList = fileIndex[fpath]; @@ -183,8 +183,8 @@ } bool HashManager::HashStore::checkTTH(const string& aFileName, int64_t aSize, uint32_t aTimeStamp) { - string fname = Text::toLower(Util::getFileName(aFileName)); - string fpath = Text::toLower(Util::getFilePath(aFileName)); + string fname = Util::getFileName(aFileName); + string fpath = Util::getFilePath(aFileName); DirIter i = fileIndex.find(fpath); if(i != fileIndex.end()) { FileInfoIter j = find(i->second.begin(), i->second.end(), fname); @@ -203,8 +203,8 @@ } const TTHValue* HashManager::HashStore::getTTH(const string& aFileName) { - string fname = Text::toLower(Util::getFileName(aFileName)); - string fpath = Text::toLower(Util::getFilePath(aFileName)); + string fname = Util::getFileName(aFileName); + string fpath = Util::getFilePath(aFileName); DirIter i = fileIndex.find(fpath); if(i != fileIndex.end()) { @@ -403,8 +403,8 @@ const string& root = getAttrib(attribs, sRoot, 2); if(!file.empty() && size >= 0 && timeStamp > 0 && !root.empty()) { - string fname = Text::toLower(Util::getFileName(file)); - string fpath = Text::toLower(Util::getFilePath(file)); + string fname = Util::getFileName(file); + string fpath = Util::getFilePath(file); store.fileIndex[fpath].push_back(HashManager::HashStore::FileInfo(fname, TTHValue(root), timeStamp, false)); } === modified file 'dcpp/ShareManager.cpp' --- dcpp/ShareManager.cpp 2008-06-13 21:00:51 +0000 +++ dcpp/ShareManager.cpp 2008-06-18 20:46:15 +0000 @@ -772,7 +772,11 @@ } void ShareManager::updateIndices(Directory& dir) { +#ifdef _WIN32 bloom.add(Text::toLower(dir.getName())); +#else + bloom.add(dir.getName()); +#endif for(Directory::MapIter i = dir.directories.begin(); i != dir.directories.end(); ++i) { updateIndices(*i->second); @@ -812,7 +816,11 @@ dir.addType(getType(f.getName())); tthIndex.insert(make_pair(f.getTTH(), i)); +#ifdef _WIN32 bloom.add(Text::toLower(f.getName())); +#else + bloom.add(f.getName()); +#endif } void ShareManager::refresh(bool dirs /* = false */, bool aUpdate /* = true */, bool block /* = false */) throw() {