-
-
Notifications
You must be signed in to change notification settings - Fork 807
/
Copy pathrepl.txt
35 lines (28 loc) · 830 Bytes
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{alias}}( from, to )
Converts between POSIX and Windows paths.
Parameters
----------
from: string
Input path.
to: string
Output path convention: 'win32', 'mixed', or 'posix'.
Returns
-------
out: string
Converted path.
Examples
--------
> var out = {{alias}}( '/c/foo/bar/beep.c', 'win32' )
'c:\\foo\\bar\\beep.c'
> out = {{alias}}( '/c/foo/bar/beep.c', 'mixed' )
'c:/foo/bar/beep.c'
> out = {{alias}}( '/c/foo/bar/beep.c', 'posix' )
'/c/foo/bar/beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'win32' )
'C:\\\\foo\\bar\\beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'mixed' )
'C:/foo/bar/beep.c'
> out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'posix' )
'/c/foo/bar/beep.c'
See Also
--------