Commit 229e26d3 authored by Konstantin Narkhov's avatar Konstantin Narkhov

Version 0.0.13

1. Update README.md
parent 0ccdea5d
Pipeline #122494929 passed with stage
in 1 minute and 44 seconds
......@@ -2,7 +2,7 @@
"perl" : "6.c",
"name" : "LZW::Revolunet",
"authors" : [ "Konstantin Narkhov" ],
"version" : "0.0.12",
"version" : "0.0.13",
"description" : "Lempel–Ziv–Welch (LZW) algorithm implementation in Perl 6",
"license" : "Artistic-2.0",
"provides" : { "LZW::Revolunet" : "lib/LZW/Revolunet.pm6" },
......
......@@ -5,11 +5,11 @@
```perl
my $data = 'Тексты - это не энциклопедические и не лингвистические системы.' x 255;
# create LWZ object
# create LWZ object with default dictionary size (57344)
my $lzw = LZW::Revolunet.new;
# set dictionary size, by default 57344
$lzw.set_dictsize( 97000 );
# OR create LWZ object with user defined dictionary size
my $lzw = LZW::Revolunet.new( dictsize => 97000 );
# compress
my $cmp = $lzw.compress( $lzw.encode_utf8($data) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment