B0_file_exts
File extension sets and maps.
type t = B0_std.String.Set.t
The type for sets of file extensions.
type map = B0_std.Fpath.t list B0_std.String.Map.t
The type for files mapped by their extension.
val make : B0_std.Fpath.ext list -> t
make exts
is a set for the given extensions.
val ext : B0_std.Fpath.ext -> t
ext e
is the set that containes only e
.
val find_files : t -> map -> B0_std.Fpath.t list
find_files exts m
selects from m
the files that have an extension in exts
.
val all_files : map -> B0_std.Fpath.t list
all_files m
is concatenation of the list of files in m
in no particular order.
( + )
is B0_std.String.Set.union
.
( - )
is B0_std.String.Set.diff
.
val all : t
all
is the union of all the following sets.
val c_lang : t
c_lang
is ".h"
and ".c"
.
val cmark : t
cmark
is ".md"
.
val css : t
css
is ".css"
.
val data : t
data
is ".json"
and ".xml"
.
val font : t
font
is ".otf"
, ".ttf"
, ".woff"
and ".woff2"
.
val html : t
html
is ".html"
val html_lang : t
html_lang
is ".html"
, ".css"
and ".js"
val image : t
image
is ".eps"
, ".gif"
, ".ico"
, ".jpeg"
, ".jpg"
, ".pdf"
, ".png"
, ".ps"
and ".tiff"
.
val js : t
js
is ".js"
.
val latex_lang : t
latex_lang
is ".tex"; ".sty"; ".bib"; ".bibdoi"
.
val ocaml_lang : t
ocaml
is ".mli"
, ".ml"
, ".mld"
, .mll
and .mly
.
val sound : t
sound
is ".aiff"
, ".flac"
, ".mp3"
and ".wav"
.
val tex : t
tex
is ".tex"
.
val video : t
video
is ".flv"
, ".mov"
and ".mp4"
.