SemVer

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

Constructors

this
this()
Undocumented in source.
this
this(string semVer)

Creates and validates a version number from a string.

Members

Functions

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

Increment version number.

opCmp
int opCmp(SemVer other)

Compare this SemVer with the other SemVer.

opEquals
bool opEquals(SemVer other)

Check for equality between this SemVer and the other SemVer.

toString
string toString()

Return the canonical string format.

Properties

valid
bool valid [@property getter]

Property that indicates if this is a valid, semantic version.

Meta