irm-1.6-b3/MDB/querysim.php
/**
     * Split QuerySim string into an array on a delimiter
     *
     * @param string $thisLine Text of simulated query
     * @param string $delim    The delimiter to split on
     *
     * @access private
     *
     * @return array containing parsed string
     */
Split QuerySim string into an array on a delimiter
@param string $thisLine Text of simulated query
@param string $delim    The delimiter to split on

@access private

@return array containing parsed string
Split QuerySim string into an array on a delimiter @param string $thisLine Text of simulated query @param string $delim The delimiter to split on @access private @return array containing parsed string
function _parseOnDelim($thisLine, $delim)
    {
        $delimQuoted = preg_quote($delim, '/');
        $thisLine = trim($thisLine);
        $parsed = preg_split('/(?<!\\\\)' .$delimQuoted. '/', $thisLine);
        $parsed = preg_replace('/\\\\' .$delimQuoted. '/', $delim, $parsed);
        if ($delim != $this->options['eolDelim']) {
            $parsed = preg_replace('/\\\\/', '', $parsed);
        }
        return $parsed;
    }
function _parseOnDelim ( $ thisLine , $ delim ) { $ delimQuoted = preg_quote ( $ delim , '/' ) ; $ thisLine = trim ( $ thisLine ) ; $ parsed = preg_split ( '/(?<!\\\\)' . $ delimQuoted . '/' , $ thisLine ) ; $ parsed = preg_replace ( '/\\\\' . $ delimQuoted . '/' , $ delim , $ parsed ) ; if ( $ delim != $ this -> options [ 'eolDelim' ] ) { $ parsed = preg_replace ( '/\\\\/' , '' , $ parsed ) ; } return $ parsed ; }
Split QuerySim string into an array on a delimiter
 @param string $thisLine Text of simulated query
 @param string $delim    The delimiter to split on
Split QuerySim string into an array on a delimiter @param string $thisLine Text of simulated query @param string $delim The delimiter to split on
//replaces escaped delimiters //replaces escape chars