private FindExistingUpdate ( string fileName ) : int | ||
fileName | string | |
return | int |
private int FindExistingUpdate(string fileName) {
int result=-1;
string convertedName=GetTransformedFileName(fileName);
if (updateIndex_.ContainsKey(convertedName)) {
result=(int)updateIndex_[convertedName];
}
/*
// This is slow like the coming of the next ice age but takes less storage and may be useful
// for CF?
for ( int index = 0; index < updates_.Count; ++index ) {
if ( string.Compare(convertedName, (( ZipUpdate )updates_[index]).Entry.Name,
true, CultureInfo.InvariantCulture) == 0 ) {
result = index;
break;
}
}
*/
return result;
}
ZipFile::FindExistingUpdate ( |