method

prepare_unquoted

ruby latest stable - Class: CSV::Parser

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

prepare_unquoted()
private

No documentation available.

# File lib/csv/parser.rb, line 516
    def prepare_unquoted
      return if @quote_character.nil?

      no_unquoted_values = "\r\n".encode(@encoding)
      no_unquoted_values << @escaped_first_column_separator
      unless @liberal_parsing
        no_unquoted_values << @escaped_quote_character
      end
      if @escaped_strip
        no_unquoted_values << @escaped_strip
      end
      @unquoted_value = Regexp.new("[^".encode(@encoding) +
                                   no_unquoted_values +
                                   "]+".encode(@encoding))
    end