time-to-botec

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

repl.txt (1418B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is an absolute path.
      4 
      5     Function behavior is platform-specific. On Windows platforms, the function
      6     is equal to `.win32()`. On POSIX platforms, the function is equal to
      7     `.posix()`.
      8 
      9     Parameters
     10     ----------
     11     value: any
     12         Value to test.
     13 
     14     Returns
     15     -------
     16     bool: boolean
     17         Boolean indicating if a value is an absolute path.
     18 
     19     Examples
     20     --------
     21     // Windows environment:
     22     > var bool = {{alias}}( 'C:\\foo\\bar\\baz' )
     23     true
     24 
     25     // POSIX environment:
     26     > bool = {{alias}}( '/foo/bar/baz' )
     27     true
     28 
     29 
     30 {{alias}}.posix( value )
     31     Tests if a value is a POSIX absolute path.
     32 
     33     Parameters
     34     ----------
     35     value: any
     36         Value to test.
     37 
     38     Returns
     39     -------
     40     bool: boolean
     41         Boolean indicating if a value is a POSIX absolute path.
     42 
     43     Examples
     44     --------
     45     > var bool = {{alias}}.posix( '/foo/bar/baz' )
     46     true
     47     > bool = {{alias}}.posix( 'foo/bar/baz' )
     48     false
     49 
     50 
     51 {{alias}}.win32( value )
     52     Tests if a value is a Windows absolute path.
     53 
     54     Parameters
     55     ----------
     56     value: any
     57         Value to test.
     58 
     59     Returns
     60     -------
     61     bool: boolean
     62         Boolean indicating if a value is a Windows absolute path.
     63 
     64     Examples
     65     --------
     66     > var bool = {{alias}}.win32( 'C:\\foo\\bar\\baz' )
     67     true
     68     > bool = {{alias}}.win32( 'foo\\bar\\baz' )
     69     false
     70 
     71     See Also
     72     --------
     73