module

TextCompressor

Constants

ENCODER_MAP = {"dict" => DictionaryEncoder, "sym" => SymbolEncoder}

Instance methods

compress(text : String, encoder_option : String = "dict", threshold : Int32 = 40) : String

Compresses the given text, and appends the encoding map to the end of the text

Source
decompress(compressed_text : String)
Source
format_encoding_keys(encoding_keys : Array(Array(String)))

If multiple sets of mappings are required for decoding, separate them with a newline

Source

Nested types