vault/classes/Maikuolan/ComplexStringHandler.php
public function generateMarkers($Pattern)
    {
        preg_match_all($Pattern, $this->Input, $this->Markers, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
        $Start = 0;
        $this->Working = [];
        foreach ($this->Markers as $Marker) {
            if (!is_array($Marker[0]) || !isset($Marker[0][0]) || is_array($Marker[0][0]) || !isset($Marker[0][1])) {
                break;
            }
            $this->Working[] = substr($this->Input, $Start, $Marker[0][1] - $Start);
            $Start = $Marker[0][1] + strlen($Marker[0][0]);
        }
        $this->Working[] = substr($this->Input, $Start);
    }
public function generateMarkers($Pattern)
    {
        preg_match_all($Pattern, $this->Input, $this->Markers, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
        $Start = 0;
        $this->Working = [];
        foreach ($this->Markers as $Marker) {
            if (!is_array($Marker[0]) || !isset($Marker[0][0]) || is_array($Marker[0][0]) || !isset($Marker[0][1])) {
                break;
            }
            $this->Working[] = substr($this->Input, $Start, $Marker[0][1] - $Start);
            $Start = $Marker[0][1] + strlen($Marker[0][0]);
        }
        $this->Working[] = substr($this->Input, $Start);
    }
public function generateMarkers ( $ Pattern ) { preg_match_all ( $ Pattern , $ this -> Input , $ this -> Markers , PREG_OFFSET_CAPTURE | PREG_SET_ORDER ) ; $ Start = 0 ; $ this -> Working = [ ] ; foreach ( $ this -> Markers as $ Marker ) { if ( ! is_array ( $ Marker [ 0 ] ) || ! isset ( $ Marker [ 0 ] [ 0 ] ) || is_array ( $ Marker [ 0 ] [ 0 ] ) || ! isset ( $ Marker [ 0 ] [ 1 ] ) ) { break ; } $ this -> Working [ ] = substr ( $ this -> Input , $ Start , $ Marker [ 0 ] [ 1 ] - $ Start ) ; $ Start = $ Marker [ 0 ] [ 1 ] + strlen ( $ Marker [ 0 ] [ 0 ] ) ; } $ this -> Working [ ] = substr ( $ this -> Input , $ Start ) ; }
Generate markers and working data.

@param string $Pattern The pattern to use to generate the markers.
Generate markers and working data .