Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/system/Basis/Implementation/OS/os-path.sig
ViewVC logotype

View of /sml/trunk/src/system/Basis/Implementation/OS/os-path.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1240 - (download) (as text) (annotate)
Tue Jun 11 15:35:34 2002 UTC (18 years, 7 months ago) by blume
File size: 1451 byte(s)
back-ported OS.Path.xxxUnixPath from idlbasis-devel branch
(* os-path.sig
 *
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
 *
 * The generic interface to syntactic pathname manipulation.
 *
 *)

signature OS_PATH =
  sig

    exception Path

    val parentArc  : string
    val currentArc : string

    val validVolume : {isAbs : bool, vol : string} -> bool

    val fromString : string -> {isAbs : bool, vol : string, arcs : string list}
    val toString   : {isAbs : bool, vol : string, arcs : string list} -> string

    val getVolume   : string -> string
    val getParent   : string -> string

    val splitDirFile : string -> {dir : string, file : string}
    val joinDirFile  : {dir : string, file : string} -> string
    val dir	     : string -> string
    val file	     : string -> string
    
    val splitBaseExt : string -> {base : string, ext : string option}
    val joinBaseExt  : {base : string, ext : string option} -> string
    val base	     : string -> string    
    val ext	     : string -> string option

    val mkCanonical : string -> string
    val isCanonical : string -> bool

    val mkAbsolute  : {path : string, relativeTo : string} -> string
    val mkRelative  : {path : string, relativeTo : string} -> string
    val isAbsolute  : string -> bool
    val isRelative  : string -> bool

    val isRoot      : string -> bool

    val concat      : (string * string) -> string

    val fromUnixPath : string -> string
    val toUnixPath   : string -> string

  end; (* OS_PATH *)


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0