private function _extractString($quote)
    {
        $firstPos = $this->_pos;

        while ($this->_pos < strlen($this->_value)
              &&  $this->_value[$this->_pos] != $quote
        ) {
            $this->_pos++;
        }

        if ($this->_pos == strlen($this->_value)) {
            // Runaway string.
            throw $this->_createException(
                $this->_pos,
                Resources::ERROR_CONNECTION_STRING_MISSING_CHARACTER,
                $quote
            );
        }

        return substr($this->_value, $firstPos, $this->_pos++ - $firstPos);
    }
private function _extractString($quote)
    {
        $firstPos = $this->_pos;

        while ($this->_pos < strlen($this->_value)
              &&  $this->_value[$this->_pos] != $quote
        ) {
            $this->_pos++;
        }

        if ($this->_pos == strlen($this->_value)) {
            // Runaway string.
            throw $this->_createException(
                $this->_pos,
                Resources::ERROR_CONNECTION_STRING_MISSING_CHARACTER,
                $quote
            );
        }

        return substr($this->_value, $firstPos, $this->_pos++ - $firstPos);
    }
private function _extractString ( $ quote ) { $ firstPos = $ this -> _pos ; while ( $ this -> _pos < strlen ( $ this -> _value ) && $ this -> _value [ $ this -> _pos ] != $ quote ) { $ this -> _pos ++ ; } if ( $ this -> _pos == strlen ( $ this -> _value ) ) { // Runaway string. throw $ this -> _createException ( $ this -> _pos , Resources :: ERROR_CONNECTION_STRING_MISSING_CHARACTER , $ quote ) ; } return substr ( $ this -> _value , $ firstPos , $ this -> _pos ++ - $ firstPos ) ; }
Extracts the string until the given quotation mark.

@param string $quote The quotation mark terminating the string.

@return string
Extracts the string until the given quotation mark .