module OASISVersion:sig..end
This module handles versions and version comparators. A version is a string of the form "1.0.0". We compare integer and non-integer parts between to version to order them. Version comparators defined relations to a set of version. E.g. ">= 1.0.0" is a version comparator and defines all version above "1.0.0", including "1.0.0".
The version comparison is done using
Debian policy for version.
Author(s): Sylvain Le Gall
types =string
type t
val version_compare : t -> t -> intval version_compare_string : string -> string -> intval version_of_string : string -> tval string_of_version : t -> stringval value : t OASISValues.tval odn_of_t : t -> ODN.tODN.t. Not exported.val chop : t -> ttype comparator =
| |
VGreater of |
| |
VGreaterEqual of |
| |
VEqual of |
| |
VLesser of |
| |
VLesserEqual of |
| |
VOr of |
| |
VAnd of |
val comparator_apply : t -> comparator -> boolval string_of_comparator : comparator -> string">= 3.12.1".val varname_of_comparator : comparator -> stringval comparator_ge : t -> comparator -> boolcomparator_ge version comparator
Check if comparator is compatible with all versions >= than versionval comparator_of_string : string -> comparatorval comparator_reduce : comparator -> comparatorval comparator_value : comparator OASISValues.tval odn_of_comparator : comparator -> ODN.tODN.t. Not exported.