B0_ocaml.ModnameModule names
val v : string -> tv n is a module name for n, the result is capitalized.
val of_path_filename : B0_std.Fpath.t -> tof_path_filename f is the basename of f, without extension, capitalized. This assumes the basename of f follows the OCaml file naming convention mandated by the toolchain. If you know that may not be the case use mangle_filename.
val pp : t B0_std.Fmt.tpp formats a module name.
module Set = B0_std.String.SetModule name sets.
module Map = B0_std.String.MapModule name maps.
val mangle_filename : string -> tmangle_filename s is module name obtained by mangling the filename s as follows:
.ml or .mli.- (0x2D) or dot . (0x2E) to an underscore _ (0x5F).'M'.The transformation is consistent with of_path_filename on files that follows the OCaml toolchain convention. However the transformation is not injective. Here are a few examples:
filename Module name
----------------------------------------
publish-website Publish_website
publish_website Publish_website
import-data.ml Import_data
import-data.xml.ml Import_data_xml
import-data.script Import_data_script
mix+match Mix2Bmatch
_release.ml M_release