time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (830B)


      1 
      2 {{alias}}( from, to )
      3     Converts between POSIX and Windows paths.
      4 
      5     Parameters
      6     ----------
      7     from: string
      8         Input path.
      9 
     10     to: string
     11         Output path convention: 'win32', 'mixed', or 'posix'.
     12 
     13     Returns
     14     -------
     15     out: string
     16         Converted path.
     17 
     18     Examples
     19     --------
     20     > var out = {{alias}}( '/c/foo/bar/beep.c', 'win32' )
     21     'c:\\foo\\bar\\beep.c'
     22     > out = {{alias}}( '/c/foo/bar/beep.c', 'mixed' )
     23     'c:/foo/bar/beep.c'
     24     > out = {{alias}}( '/c/foo/bar/beep.c', 'posix' )
     25     '/c/foo/bar/beep.c'
     26     > out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'win32' )
     27     'C:\\\\foo\\bar\\beep.c'
     28     > out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'mixed' )
     29     'C:/foo/bar/beep.c'
     30     > out = {{alias}}( 'C:\\\\foo\\bar\\beep.c', 'posix' )
     31     '/c/foo/bar/beep.c'
     32 
     33     See Also
     34     --------
     35