package b0

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B0_file_extsSource

File extension sets and maps.

File extension sets

The type for sets of file extensions.

The type for files mapped by their extension.

Sourceval make : B0_std.Fpath.ext list -> t

make exts is a set for the given extensions.

ext e is the set that containes only e.

Sourceval find_files : t -> map -> B0_std.Fpath.t list

find_files exts m selects from m the files that have an extension in exts.

Sourceval all_files : map -> B0_std.Fpath.t list

all_files m is concatenation of the list of files in m in no particular order.

Sourceval exists_file : t -> map -> bool

exists_file exts fm s is true iff find_file fm s is not empty.

Sourceval (+) : t -> t -> t
Sourceval (-) : t -> t -> t

Constant sets

Sourceval all : t

all is the union of all the following sets.

Sourceval c_lang : t

c_lang is ".h" and ".c".

Sourceval cmark : t

cmark is ".md".

Sourceval css : t

css is ".css".

Sourceval data : t

data is ".json" and ".xml".

Sourceval font : t

font is ".otf", ".ttf", ".woff" and ".woff2".

Sourceval html : t

html is ".html"

Sourceval html_lang : t

html_lang is ".html", ".css" and ".js"

Sourceval image : t

image is ".eps", ".gif", ".ico", ".jpeg", ".jpg", ".pdf", ".png", ".ps" and ".tiff".

Sourceval js : t

js is ".js".

Sourceval latex_lang : t

latex_lang is ".tex"; ".sty"; ".bib"; ".bibdoi".

Sourceval ocaml_lang : t

ocaml is ".mli", ".ml", ".mld", .mll and .mly.

Sourceval sound : t

sound is ".aiff", ".flac", ".mp3" and ".wav".

Sourceval tex : t

tex is ".tex".

Sourceval video : t

video is ".flv", ".mov" and ".mp4".

Sourceval www : t

www is the union of data, font, html_lang, image, sound, video.