SemVer

Represent a semantic version number MAJOR[.MINOR.PATCH][-PRERELEASE][+BUILD].

Constructors

this
this(string semVer)

Creates and validates a version number from a string.

Members

Functions

differAt
VersionPart differAt(SemVer other)

Compare two different versions and return the parte they differ on.

differAt
VersionPart differAt(SemVer other)

Compare two different versions and return the parte they differ on.

inc
deprecated SemVer inc(VersionPart versionPart)
Undocumented in source. Be warned that the author may not have intended to support it.
increment
SemVer increment(VersionPart versionPart)

Increment version number.

opCmp
int opCmp(SemVer other)

Compare this $(D_PSYMBOL SemVer) with the other $(D_PSYMBOL SemVer).

opEquals
bool opEquals(SemVer other)

Check for equality between this $(D_PSYMBOL SemVer) and the other $(D_PSYMBOL SemVer).

toString
string toString()

Return the canonical string format.

Properties

isStable
bool isStable [@property getter]

Property that indicates whether this $(D_PSYMBOL SemVer) is stable.

isValid
bool isValid [@property getter]

Property that indicates whether this $(D_PSYMBOL SemVer) is valid.

valid
deprecated bool valid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta