/** * Sets the string to be parsed. * * @param string $string The string to be parsed * @return self */ protected function setStringToBeParsed($string) { // reset the position $this->position = $this->savedPosition = $this->furthestPosition = 0; $this->input = ILess_Util::normalizeString($string); // FIXME: What about UTF-8? $this->length = strlen($this->input); return $this; }