mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-05 00:04:00 +01:00
LS String PHP lib added
To compress and decompress strings with LZ compression
This commit is contained in:
29
LZCompressor/LZData.php
Normal file
29
LZCompressor/LZData.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace LZCompressor;
|
||||
|
||||
class LZData
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
public $str = '';
|
||||
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
public $val;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $position = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $index = 1;
|
||||
|
||||
public function append($str) {
|
||||
$this->str .= $str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user