$64 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.malloca.com/wp-content/plugins/loco-translate/src/error/

HOME
Current File : /home/bqrcodec/contact.malloca.com/wp-content/plugins/loco-translate/src/error//ParseException.php
<?php
/**
 * Exception thrown when parsing fails
 */
class Loco_error_ParseException extends Loco_error_Exception {

    /**
     * @var string[]
     */
    private $context;

    /**
     * @param int line number
     * @param int column number
     * @param string source in which to identify line and column
     * @return self
     */
    public function setContext( $line, $column, $source ){
        $this->context = [];
        $lines = preg_split( '/\\r?\\n/', $source, $line+1 );
        $offset = $line - 1;
        if( isset($lines[$offset]) ){
            $this->context[] = $lines[$offset];
            $this->context[] = str_repeat(' ', max(0,$column-1) ).'^';
        }
        $this->message = sprintf("Error at line %u, column %u: %s", $line, $column, $this->message );
        return $this;
    }


    /**
     * @param int zero-based offset to failure point
     * @param string source in which to identify line and column
     * @return self
     */
    public function setOffsetContext( $offset, $source ){
        $lines = preg_split( '/\\r?\\n/', substr($source,0,$offset) );
        $line = count($lines);
        $column = 1 + strlen( end($lines) );
        return $this->setContext( $line, $column, $source );
    }


    /**
     * @return string
     */
    public function getContext(){
        return is_array($this->context) ? implode("\n",$this->context) : '';
    }

}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0755
AdminNotices.php
5.985 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Debug.php
0.94 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Exception.php
5.819 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
LocaleException.php
0.087 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Notice.php
0.668 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
ParseException.php
1.371 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Success.php
0.628 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
UploadException.php
0.115 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
Warning.php
0.559 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
WriteException.php
0.279 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644
XmlParseException.php
0.181 KB
29 Jan 2024 10.33 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF