(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** [to_relative_path path] takes as input a file path [path], and constructs anequivalentrelativepathfromthecurrentworkingdirectory.If[path]
is already relative, then it is returned immediately. *) val to_relative_path : string -> string
(** [normalize_path path] takes as input a file path [path], and returns an equivalentpaththat:(1)doesnotcontainthecurrentdirectorymember ["."]unlessthepathistothecurrentdirectory(inwhichcase["."] isreturned,or["./"]if[path]hasatrailing["/"]),(2)onlyuses parentdirectorymembers[".."]foraprefixofthepath,and(3),has atrailing["/"]onlyifandonlyif[path]does.
Forexample,paths["dir1/dir2/file.v"],["."],["dir1/dir2/dir3/"]and ["../../dir/file.v"]arepossiblereturnvalues,but["./file.v"]and
["dir1/../dir2"] are not. *) val normalize_path : string -> string
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.24 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.