protected function copyUntil($string) {
        $newPosition = $this->find($string);
        $this->compressedCode .= substr($this->code, $this->currentPosition, $newPosition - $this->currentPosition);
        $this->currentPosition = $newPosition;
    }
protected function copyUntil($string) {
        $newPosition = $this->find($string);
        $this->compressedCode .= substr($this->code, $this->currentPosition, $newPosition - $this->currentPosition);
        $this->currentPosition = $newPosition;
    }
protected function copyUntil ( $ string ) { $ newPosition = $ this -> find ( $ string ) ; $ this -> compressedCode .= substr ( $ this -> code , $ this -> currentPosition , $ newPosition - $ this -> currentPosition ) ; $ this -> currentPosition = $ newPosition ; }
Copies some code to the compressed code without modification. The current position will be after the specified
string.
@param string $string The string until which the code should be copied.
Copies some code to the compressed code without modification . The current position will be after the specified string .