git-svn-id: svn://db.shs.com.ru/pip@554 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-11-20 12:26:39 +00:00
parent 6cbe77c5b6
commit a1b95e6e66
6 changed files with 112 additions and 7 deletions

View File

@@ -1,11 +1,19 @@
#include "pip.h"
#include "picodeparser.h"
#include "pivector2d.h"
#include "picompress.h"
int main(int argc, char *argv[]) {
PICodeParser cp;
cp.parseFile("cp.h");
PIString s = PIString::fromUTF8("hello, привет привет привет привет привет привет");
PIByteArray ba = s.toUTF8();
piCout << "original " << ba.toHex();
ba = piCompress(ba);
piCout << "compress " << ba.toHex();
ba = piDecompress(ba);
piCout << "decompress" << ba.toHex();
piCout << PIString::fromUTF8(ba);
ba = PIByteArray(16);
piCout << ba.toHex() << ba.size();
piCout << piCompress(ba).toHex() << piCompress(ba).size();
/*PIString s = PIString::fromUTF8("hello, привет");
piCout << s;
PIByteArray ba = s.toUTF8();