package dose3

  1. Overview
  2. Docs
Dose library (part of Mancoosi tools)

Install

Dune Dependency

Authors

Maintainers

Sources

dose3-7.0.0.tar.gz
md5=bc99cbcea8fca29dca3ebbee54be45e1
sha512=98dc4bd28e9f4aa8384be71b31783ae1afac577ea587118b8457b554ffe302c98e83d0098971e6b81803ee5c4f2befe3a98ef196d6b0da8feb4121e982ad5c2f

doc/dose3.versioning/Dose_versioning/SemverNode/index.html

Module Dose_versioning.SemverNodeSource

this functions follow the semantic versioning specification http://semver.org/

Sourcetype raw_version = string * string * string * string list * string list

Raw version components. Raw versions are not strictly semantic versions, but can also contains characters as 'x' and 'X' . Raw versions must be converted to semantic versions.

Sourcetype ident =
  1. | S of string
  2. | N of int
Sourcetype version = {
  1. major : int;
  2. minor : int;
  3. patch : int;
  4. pre : ident list;
  5. build : string list;
}
Sourceval parse_raw_version : string -> raw_version

Parses a string into a version. Fail if the version can not be parsed

Sourceval parse_version : string -> version

Parses a string into a version. Fail if the version can not be parsed

Sourceval convert : raw_version -> version

Raise Failure if the string cannot be converted

Sourceval compose : version -> string

recompose a version string. For all v: equal(v,compose(parse_version v)) = true. There may, however, be small syntactic differences between v and compose(parse_version v)

Sourceval compare_version : version -> version -> int

Compare two versions. Raw versions must be converted to be compared

Sourceval compare : string -> string -> int

Compare two versions. Fail if one of the versions cannot be parsed or compared

Sourceval equal : string -> string -> bool

Equality between two versions

OCaml

Innovation. Community. Security.