This commit is contained in:
Igor Pavlov
2022-06-23 11:43:16 +01:00
committed by Kornel
parent c3529a41f5
commit ec44a8a070
1248 changed files with 15242 additions and 2443 deletions

19
CPP/7zip/Common/UniqBlocks.h Normal file → Executable file
View File

@@ -3,9 +3,24 @@
#ifndef __UNIQ_BLOCKS_H
#define __UNIQ_BLOCKS_H
#include "../../Common/MyTypes.h"
#include "../../Common/MyBuffer.h"
#include "../../Common/MyVector.h"
#include "../../Common/MyString.h"
struct C_UInt32_UString_Map
{
CRecordVector<UInt32> Numbers;
UStringVector Strings;
void Add_UInt32(const UInt32 n)
{
Numbers.AddToUniqueSorted(n);
}
int Find(const UInt32 n)
{
return Numbers.FindInSorted(n);
}
};
struct CUniqBlocks
{