module SassC::Util

def file_url_to_path(url)

def file_url_to_path(url)
  return if url.nil?
  path = URI::DEFAULT_PARSER.unescape(URI.parse(url).path)
  path = path[1..] if Gem.win_platform? && path[0].chr == '/' && path[1].chr =~ /[a-z]/i && path[2].chr == ':'
  path
end

def path_to_file_url(path)

def path_to_file_url(path)
  return if path.nil?
  path = File.absolute_path(path)
  path = "/#{path}" unless path.start_with? '/'
  URI::File.build([nil, URI::DEFAULT_PARSER.escape(path)]).to_s
end