Module Assemblage.Path.Rel

module Rel: sig .. end
Relative paths.


Relative paths


type path = Assemblage.Path.t 
The type for absolute or relative paths.
type t = Assemblage.Path.rel 
The type for relative paths.
val empty : Assemblage.Path.rel
See Assemblage.Path.empty.
val dash : Assemblage.Path.rel
See Assemblage.Path.dash.
val add : Assemblage.Path.rel -> string -> Assemblage.Path.rel
See Assemblage.Path.add.
val concat : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
See Assemblage.Path.concat.
val file : Assemblage.Path.filename -> Assemblage.Path.rel
file name is add empty f.
val base : string -> Assemblage.Path.rel
base name is add empty f.
val (/) : Assemblage.Path.rel -> string -> Assemblage.Path.rel
See Assemblage.Path.(/).
val (//) : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
See Assemblage.Path.(//).
val basename : Assemblage.Path.rel -> string
See Assemblage.Path.basename.
val dirname : Assemblage.Path.rel -> Assemblage.Path.rel
See Assemblage.Path.dirname.
val rem_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel option
See Assemblage.Path.rem_prefix.
val find_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
See Assemblage.Path.find_prefix.

Predicates and comparison


val is_empty : Assemblage.Path.rel -> bool
See Assemblage.Path.is_empty.
val is_dash : Assemblage.Path.rel -> bool
See Assemblage.Path.is_dash.
val is_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> bool
See Assemblage.Path.is_prefix.
val equal : Assemblage.Path.rel -> Assemblage.Path.rel -> bool
See Assemblage.Path.equal.
val compare : Assemblage.Path.rel -> Assemblage.Path.rel -> int
See Assemblage.Path.compare.

Conversions


val to_segs : Assemblage.Path.rel -> string list
to_segs r is r's segments.
val of_segs : string list -> Assemblage.Path.rel
of_segs segs is a path from segs segments.
val to_string : Assemblage.Path.rel -> string
See Assemblage.Path.to_string.
val quote : Assemblage.Path.rel -> string
See Assemblage.Path.quote.
val pp : Format.formatter -> Assemblage.Path.rel -> unit
See Assemblage.Path.pp.

File extensions


val ext : Assemblage.Path.rel -> Assemblage.Path.ext option
See Assemblage.Path.ext.
val get_ext : Assemblage.Path.rel -> Assemblage.Path.ext
See Assemblage.Path.get_ext.
val add_ext : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
See Assemblage.Path.add_ext.
val rem_ext : Assemblage.Path.rel -> Assemblage.Path.rel
See Assemblage.Path.rem_ext.
val change_ext : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
See Assemblage.Path.change_ext.
val (+) : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
See Assemblage.Path.(+).
val has_ext : Assemblage.Path.ext -> Assemblage.Path.rel -> bool
See Assemblage.Path.has_ext.
val ext_matches : Assemblage.Path.ext list -> Assemblage.Path.rel -> bool
See Assemblage.Path.ext_matches.

Path sets and maps


module Set: sig .. end
module Map: sig .. end