Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -15,7 +15,7 @@ Lz77Encoder::Lz77Encoder(BitStream* inputStream, BitStream* outputStream)
|
|||
|
||||
}
|
||||
|
||||
void Lz77Encoder::setPrefixCodeGenerator(std::unique_ptr<PrefixCodeGenerator> generator)
|
||||
void Lz77Encoder::setPrefixCodeGenerator(Ptr<PrefixCodeGenerator> generator)
|
||||
{
|
||||
mCodeGenerator = std::move(generator);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ void Lz77Encoder::populateSearchBuffer(const Hit& hit)
|
|||
}
|
||||
else
|
||||
{
|
||||
std::vector<unsigned char> new_items(distance, 0);
|
||||
Vector<unsigned char> new_items(distance, 0);
|
||||
for(unsigned idx=0 ;idx<distance; idx++)
|
||||
{
|
||||
new_items[idx] = getSearchBufferItem(idx);
|
||||
|
@ -211,7 +211,7 @@ bool Lz77Encoder::encode()
|
|||
return input_stream_ended;
|
||||
}
|
||||
|
||||
const std::vector<Lz77Encoder::Hit>& Lz77Encoder::getHitBuffer() const
|
||||
const Vector<Lz77Encoder::Hit>& Lz77Encoder::getHitBuffer() const
|
||||
{
|
||||
return mHitBuffer;
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ void Lz77Encoder::flushHitBuffer()
|
|||
bool Lz77Encoder::decode()
|
||||
{
|
||||
/*
|
||||
std::string ret;
|
||||
String ret;
|
||||
|
||||
unsigned loc{0};
|
||||
while(loc < stream.size())
|
||||
|
@ -272,7 +272,7 @@ bool Lz77Encoder::decode()
|
|||
unsigned loc_working = loc;
|
||||
|
||||
auto remainder = stream.size() - loc;
|
||||
std::string offset;
|
||||
String offset;
|
||||
|
||||
unsigned length_loc{0};
|
||||
for(unsigned jdx=0; jdx< remainder; jdx++)
|
||||
|
@ -292,7 +292,7 @@ bool Lz77Encoder::decode()
|
|||
}
|
||||
unsigned offset_amount = std::stoul(offset);
|
||||
|
||||
std::string length;
|
||||
String length;
|
||||
remainder = stream.size() - loc;
|
||||
|
||||
for(unsigned jdx=0; jdx< remainder; jdx++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue