Method: AsProject.windowize_cygwin_path2

Defined in:
lib/asproject_utils.rb

.windowize_cygwin_path2(name) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/asproject_utils.rb', line 13

def AsProject::windowize_cygwin_path2(name)
  expr = /\/cygdrive\/([a-z]|[A-Z])/
  matched = name.match(expr)
  if(matched)
    prefix = matched.captures[0].upcase + ':'
    name.gsub!(expr, prefix)
  end
  name = name.split('/').join('\\')
  return name
end