andykras / lz-string-cpp

lz-string implementation in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lz-string-cpp

LZ-based compression algorithm implemented in C++

See original repo https://github.com/pieroxy/lz-string

basic usage

std::string json = R"([{"foo":42},{"pi":3.14}])";

// NobwRAZg9lYFwBYBMBfANOADgS3gZgDoBGBFAXSA
std::string compressed = lzstring::compressToBase64(json);

// [{"foo":42},{"pi":3.14}]
std::string decompressed = lzstring::decompressFromBase64(compressed);

http://cpp.sh/2f5vf

About

lz-string implementation in C++

License:MIT License


Languages

Language:C++ 96.5%Language:JavaScript 3.5%