class Capybara::Selector::CSS::Splitter

def parse_string(quote, strio)

def parse_string(quote, strio)
  string = quote
  while (char = strio.getc)
    string += char
    case char
    when quote
      return string
    when '\\'
      string += strio.getc
    end
  end
  raise ArgumentError, 'Invalid CSS Selector - string end not found'
end