package codept-lib
Module SupportSource
Support module for recently introduced function in stdlib
extension name is the shortest suffix ext of name0 where:
name0is the longest suffix ofnamethat does not contain a directory separator;extdoes not starts with a period (such asname0 ^ "." ^ ext = name)extplus the dot is preceded by at least one non-period character inname0.
If such a suffix does not exist, extension name is the empty string.
Return the given file name without its extension, as defined in extension. If the extension is empty, the function returns the given file name.
The following invariant holds for any file name s: remove_extension s ^ "." ^ extension s = s
split_on_dirs path splits the file path path on the platform's directory seperator and on forward slashes (/).
Forward slashes are always included as a split character because on Windows the predominant means of accessing OCaml is through a Unix emulation shell (Cygwin or MSYS2).
OCaml identifier rules