.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@10378 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-28 16:30:08 +00:00
parent 8e2bc61b12
commit c367627e36
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
String data = "Hello world, this is test! Also '=' to test QP.";
String enc;
enc = HexEncode(data);
DUMP(enc);
DUMP(HexDecode(enc));
DUMP(HexEncode(data, 8, ':'));
enc = Base64Encode(data);
DUMP(enc);
DUMP(Base64Decode(enc));
enc = UrlEncode(data);
DUMP(enc);
DUMP(UrlDecode(enc));
enc = QPEncode(data);
DUMP(enc);
DUMP(QPDecode(enc));
DUMP(DeHtml("<foo&bar>"));
}