Zmiana metody kompresji na chunkowanie, zmiana nazwy z Void Archive na expak
This commit is contained in:
parent
f6150b0d17
commit
aef8daae9b
15 changed files with 320 additions and 93 deletions
26
Txtpp.h
26
Txtpp.h
|
|
@ -71,6 +71,32 @@ public:
|
|||
return tmp;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T getValue(const std::string& key, const std::string& val)
|
||||
{
|
||||
std::vector<std::string> tmp;
|
||||
Parse(key, tmp);
|
||||
|
||||
for (const auto& line : tmp)
|
||||
{
|
||||
std::string cleanLine = RemoveSpaces(line);
|
||||
std::string t;
|
||||
std::string v;
|
||||
|
||||
bool tv = false;
|
||||
|
||||
for (const char& c : cleanLine)
|
||||
{
|
||||
if (c != ":") {tv = true;}
|
||||
|
||||
if (!tv) { t += c; }
|
||||
else { v += c; }
|
||||
}
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
|
||||
private:
|
||||
const char sectionStart = '{';
|
||||
const char sectionEnd = '}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue