Title: | Wrapper for 'lz-string' 'C++' Library |
---|---|
Description: | Provide access to the 'lz-string' <http://pieroxy.net/blog/pages/lz-string/index.html> 'C++' library for Lempel-Ziv (LZ) based compression and decompression of strings. |
Authors: | Sam Parmar [aut, cre], Andrey Krasnov [cph] (Author of included lz-string C++ library), Pawel Rucki [ctb] |
Maintainer: | Sam Parmar <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.3 |
Built: | 2024-10-25 21:19:07 UTC |
Source: | https://github.com/parmsam/lzstring-r |
This function takes a string as input and returns a compressed version of the string in Base64 format.
compressToBase64(string)
compressToBase64(string)
string |
A character string to be compressed. |
A character string representing the compressed input string in Base64 format.
compressToBase64("Hello, world!")
compressToBase64("Hello, world!")
This function takes a string as input and returns a compressed version of the string in Encoded URI Component format.
compressToEncodedURIComponent(string)
compressToEncodedURIComponent(string)
string |
A character string to be compressed. |
A character string representing the compressed input string in Encoded URI Component format.
compressToEncodedURIComponent("Hello, world!")
compressToEncodedURIComponent("Hello, world!")
This function takes a compressed string in Base64 format as input and returns the decompressed version of the string.
decompressFromBase64(string)
decompressFromBase64(string)
string |
A character string in Base64 format to be decompressed. |
A character string representing the decompressed input string.
x <- compressToBase64("Hello, world!") decompressFromBase64(x)
x <- compressToBase64("Hello, world!") decompressFromBase64(x)
This function takes a compressed string in Encoded URI Component format as input and returns the decompressed version of the string.
decompressFromEncodedURIComponent(string)
decompressFromEncodedURIComponent(string)
string |
A character string in Encoded URI Component format to be decompressed. |
A character string representing the decompressed input string.
x <- compressToEncodedURIComponent("Hello, world!") decompressFromEncodedURIComponent(x)
x <- compressToEncodedURIComponent("Hello, world!") decompressFromEncodedURIComponent(x)