Crate zalgo_codec_common
source ·Expand description
A crate for converting an ASCII text string to a single unicode grapheme cluster and back.
Provides the non-macro functionality of the crate zalgo-codec
.
Re-exports
pub use zalgo_string::ZalgoString;
Modules
- Contains the implementation of
ZalgoString
as well as related iterators.
Enums
- The error returned by
zalgo_encode
,ZalgoString::new
, andzalgo_wrap_python
if they encounter a byte they can not encode.
Functions
- Takes in a string that was encoded by
zalgo_encode
and decodes it back into an ASCII string. - Takes in an ASCII string without control characters (except newlines) and encodes it into a single grapheme cluster using a reversible encoding scheme.
- zalgo-encodes an ASCII string containing Python code and wraps it in a decoder that decodes and executes it. The resulting Python code should retain the functionality of the original.