/** * The current column of the line of the scanned string. * * @return int */ public function getColumn() { return $this->getPointer() - (int) wfWAFUtils::strrpos(wfWAFUtils::substr($this->getString(), 0, $this->getPointer() + 1), "\n") + 1; }