// Add one to $this->char because we want the number for the next
// byte to be processed.
return substr_count($this->data, "\n", 0,
min($this->char,
$this->EOF
)) + 1;
} /**
* @deprecated
*/
public function getCurrentLine() { return $this->
currentLine();
} /**
* Returns the current column of the current line that the tokenizer is at.
* Newlines are column 0. The first char after a newline is column 1.
*
* @return int The column number.
*/
public function columnOffset() { // Short circuit for the first char.