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
type
t
val version_compare : t -> t -> int
val version_of_string : string -> t
val string_of_version : t -> string
val value : t OASISValues.t
val odn_of_t : t -> OASISDataNotation.t
OASISDataNotation.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_of_string : string -> comparator
val comparator_reduce : comparator -> comparator
val comparator_value : comparator OASISValues.t
val odn_of_comparator : comparator -> OASISDataNotation.t
OASISDataNotation.t
. Not exported.module StringVersion:sig
..end
OASISVersion.StringVersion
uses string
for version.