git-svn-id: svn://db.shs.com.ru/pip@554 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
16
main.cpp
16
main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user