Implementation of versioning data for comparing packages
Create a new version from a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(version_t), | intent(out) | :: | self |
Instance of the versioning data |
||
character(len=*), | intent(in) | :: | string |
String describing the version information |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error handling |
Create a new version from a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(version_t), | intent(out) | :: | self |
Instance of the versioning data |
||
integer, | intent(in) | :: | num(:) |
Subversion numbers to define version data |
generic, public :: operator(.match.) => match | ../../ Compare a version against a version constraint (x.x.0 <= v < x.x.HUGE) |
generic, public :: operator(/=) => not_equals | |
generic, public :: operator(<) => less | |
generic, public :: operator(<=) => less_equals | |
generic, public :: operator(==) => equals | |
generic, public :: operator(>) => greater | |
generic, public :: operator(>=) => greater_equals | |
procedure, public :: s | ../../ Create a printable string from a version data type |