more PART parser work

This commit is contained in:
Dick Hollenbeck
2011-01-03 14:01:46 -06:00
parent b942ebdc69
commit 0af1004f5c
6 changed files with 119 additions and 45 deletions
+6 -2
View File
@@ -459,8 +459,12 @@ void DIR_LIB_SOURCE::GetRevisions( STRINGS* aResults, const STRING& aPartName )
PN_ITER it = partnames.upper_bound( partName +'/' );
PN_ITER end = partnames.lower_bound( partName + char( '/' +1 ) );
while( it != end )
aResults->push_back( *it++ );
for( ; it != end; ++it )
{
const char* rev = endsWithRev( *it );
assert( rev );
aResults->push_back( it->substr( rev - it->c_str() ) );
}
}
}