SemVer

Main struct

Constructors

this
this(T i)

Constructor

Members

Functions

nextMajor
SemVer nextMajor()
nextMinor
SemVer nextMinor()
nextPatch
SemVer nextPatch()

Next Major/Minor/Patch version Increments version in semver way

opCmp
int opCmp(SemVer b)

Compares two SemVer structs.

opEquals
bool opEquals(SemVer b)

true, if this == b

toString
string toString()

Convert SemVer to string

Variables

Build
string Build;
Undocumented in source.
Major
size_t Major;
Minor
size_t Minor;
Patch
size_t Patch;
Undocumented in source.
PreRelease
string PreRelease;
Undocumented in source.

Examples

SemVer("1.0.0");
SemVer("1.0.0+4444");
SemVer("1.0.0-eyyyyup");
SemVer("1.0.0-yay+build");

Meta