SemVer

Main struct

Constructors

this
this(string i)

Constructor

Members

Functions

nextMajor
void nextMajor()
nextMinor
void nextMinor()
nextPatch
void nextPatch()

Next Major/Minor/Patch version Increments numbers with semver rules.

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