columnOffset example

            $findLengthOf = substr($this->data, 0, $this->char);
        }

        return UTF8Utils::countChars($findLengthOf);
    }

    /** * @deprecated */
    public function getColumnOffset()
    {
        return $this->columnOffset();
    }

    /** * Get the current character. * * @return string The current character. */
    public function current()
    {
        return $this->data[$this->char];
    }

    

    protected function parseError($msg)
    {
        $args = func_get_args();

        if (count($args) > 1) {
            array_shift($args);
            $msg = vsprintf($msg$args);
        }

        $line = $this->scanner->currentLine();
        $col = $this->scanner->columnOffset();
        $this->events->parseError($msg$line$col);

        return false;
    }

    /** * Decode a character reference and return the string. * * If $inAttribute is set to true, a bare & will be returned as-is. * * @param bool $inAttribute Set to true if the text is inside of an attribute value. * false otherwise. * * @return string */
Home | Imprint | This part of the site doesn't use cookies.