Frama-C API - Filepath

Type-safe strings representing normalized filepaths. See module Filepath.Normalized.

  • since 18.0-Argon
include S_with_collections with type t = Filepath.Normalized.t
include S with type t = Filepath.Normalized.t
include S_no_copy with type t = Filepath.Normalized.t
val name : string

Unique name of the datatype.

val descr : t Descr.t

Datatype descriptor.

val packed_descr : Structural_descr.pack

Packed version of the descriptor.

val reprs : t list

List of representants of the descriptor.

val equal : t -> t -> bool
val compare : t -> t -> int

Comparison: same spec than

val hash : t -> int

Hash function: same spec than Hashtbl.hash.

val pretty : Stdlib.Format.formatter -> t -> unit

Pretty print each value in an user-friendly way.

val mem_project : (Project_skeleton.t -> bool) -> t -> bool

mem_project f x must return true iff there is a value p of type Project.t in x such that f p returns true.

val copy : t -> t

Deep copy: no possible sharing between x and copy x.

module Set : Set with type elt = t
module Map : Map with type key = t
module Hashtbl : Hashtbl with type key = t
val of_string : ?existence:Filepath.existence -> ?base_name:string -> string -> t
val concat : ?existence:Filepath.existence -> t -> string -> t
val pp_abs : Stdlib.Format.formatter -> t -> unit
val dummy : t