Zmiana metody kompresji na chunkowanie, zmiana nazwy z Void Archive na expak

This commit is contained in:
yanczi 2025-09-30 00:33:16 +02:00
parent f6150b0d17
commit aef8daae9b
15 changed files with 320 additions and 93 deletions

26
Txtpp.h
View file

@ -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 = '}';