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 -> int
val version_compare_string : string -> string -> int
val version_of_string : string -> t
val string_of_version : t -> string
val value : t OASISValues.t
val odn_of_t : t -> ODN.t
ODN.t
. Not exported.val chop : t -> t
type
comparator =
| |
VGreater of |
| |
VGreaterEqual of |
| |
VEqual of |
| |
VLesser of |
| |
VLesserEqual of |
| |
VOr of |
| |
VAnd of |
val comparator_apply : t -> comparator -> bool
val string_of_comparator : comparator -> string
">= 3.12.1"
.val varname_of_comparator : comparator -> string
val comparator_ge : t -> comparator -> bool
comparator_ge version comparator
Check if comparator
is compatible with all versions >= than version
val comparator_of_string : string -> comparator
val comparator_reduce : comparator -> comparator
val comparator_value : comparator OASISValues.t
val odn_of_comparator : comparator -> ODN.t
ODN.t
. Not exported.