Compare a version against a version constraint (x.x.0 <= v < x.x.HUGE)
Try to match first version against second version
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(version_t), | intent(in) | :: | lhs |
First version number |
||
class(version_t), | intent(in) | :: | rhs |
Second version number |
Version match following semantic versioning rules
Relative comparison of two versions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(version_t), | intent(in) | :: | lhs |
First version number |
||
class(version_t), | intent(in) | :: | rhs |
Second version number |
First version is less or equal
Relative comparison of two versions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(version_t), | intent(in) | :: | lhs |
First version number |
||
class(version_t), | intent(in) | :: | rhs |
Second version number |
First version is greater
Relative comparison of two versions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(version_t), | intent(in) | :: | lhs |
First version number |
||
class(version_t), | intent(in) | :: | rhs |
Second version number |
First version is greater or equal
Create a printable string from a version data type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(version_t), | intent(in) | :: | self |
Version number |
Character representation of the version
type :: version_t private !> Version numbers found integer, allocatable :: num(:) contains generic :: operator(==) => equals procedure, private :: equals generic :: operator(/=) => not_equals procedure, private :: not_equals generic :: operator(>) => greater procedure, private :: greater generic :: operator(<) => less procedure, private :: less generic :: operator(>=) => greater_equals procedure, private :: greater_equals generic :: operator(<=) => less_equals procedure, private :: less_equals !> Compare a version against a version constraint (x.x.0 <= v < x.x.HUGE) generic :: operator(.match.) => match procedure, private :: match !> Create a printable string from a version data type procedure :: s end type version_t