vault/classes/Maikuolan/ComplexStringHandler.php
public function iterateClosure($Closure, $Glue = false)
    {
        if (!is_callable($Closure) || empty($this->Input)) {
            return;
        }
        if (!$Glue) {
            foreach ($this->Working as &$Segment) {
                $Segment = $Closure($Segment);
            }
            return;
        }
        foreach ($this->Markers as &$Segment) {
            if (isset($Segment[0][0]) && !is_array($Segment[0][0])) {
                $Segment[0][0] = $Closure($Segment[0][0]);
            }
        }
    }
public function iterateClosure($Closure, $Glue = false)
    {
        if (!is_callable($Closure) || empty($this->Input)) {
            return;
        }
        if (!$Glue) {
            foreach ($this->Working as &$Segment) {
                $Segment = $Closure($Segment);
            }
            return;
        }
        foreach ($this->Markers as &$Segment) {
            if (isset($Segment[0][0]) && !is_array($Segment[0][0])) {
                $Segment[0][0] = $Closure($Segment[0][0]);
            }
        }
    }
public function iterateClosure ( $ Closure , $ Glue = false ) { if ( ! is_callable ( $ Closure ) || empty ( $ this -> Input ) ) { return ; } if ( ! $ Glue ) { foreach ( $ this -> Working as & $ Segment ) { $ Segment = $ Closure ( $ Segment ) ; } return ; } foreach ( $ this -> Markers as & $ Segment ) { if ( isset ( $ Segment [ 0 ] [ 0 ] ) && ! is_array ( $ Segment [ 0 ] [ 0 ] ) ) { $ Segment [ 0 ] [ 0 ] = $ Closure ( $ Segment [ 0 ] [ 0 ] ) ; } } }
Iterate over the working data using a given closure.

@param callable $Closure
@param bool $Glue Whether to work on the markers or the working data.
Iterate over the working data using a given closure .