package vlt
Module Vlt.UtilsSource
This module regroups miscellaneous utility functions.
Prints the passed string if Bolt verbose mode is enabled, does nothing otherwise.
The type of container mapping a string to an element, whatever their implementation is.
Source
val make_container_functions :
unit ->
'a container * (string -> 'a -> unit) * ('a -> string) * (string -> 'a)make_container_functions () returns a quadruple with the following elements:
- a container;
- a function that adds a named element to the container;
- a function that adds an unnamed element to the container, and returns its name;
- a function that returns the element whose name is passed, raising
Not_foundif such an element does not exist.
Returns the identifier of the current thread.
To be called when entering a critical section.
To be called when leaving a critical section.
split seps s returns a list of substrings of s separeted by contiguous substrings of elements from seps.
Returns a copy of the string without leading whitespace.
Returns a copy of the string without trailing whitespace.
Returns a copy of the string without leading and trailing whitespace.