wmarkdown = $wmarkdown; } public function reset(){ $this->more = true; $this->from = -1; } public function set_position($new_position){ $this->from -= $new_position; $this->to -= $new_position; } public function get_position($string){ if($this->from < 0 && $this->more) $this->get_next_position($string); return $this->more ? $this->from : null; } public function has_more(){return !!$this->more;} public function get_from(){return 0 | $this->from;} public function get_length(){return 0 | $this->length;} public function get_to(){return 0 | $this->to;} public function get_content(){return "" . $this->content;} public function get_html(){return "" . $this->html;} }