SlHelpers
SlHelpers::Version Struct Reference

Parse a version string into numbers. More...

#include <Misc.h>

Static Public Member Functions

static auto versionSplit (std::string_view version) noexcept
 Split version into a string array.
 
static unsigned versionPart (std::string_view version, bool rc=false) noexcept
 Convert version into a number.
 
static unsigned versionSum (std::string_view version) noexcept
 Sum up version parts as parsed from version. More...
 

Detailed Description

Parse a version string into numbers.

Member Function Documentation

◆ versionSum()

static unsigned SlHelpers::Version::versionSum ( std::string_view  version)
inlinestaticnoexcept

Sum up version parts as parsed from version.

Parameters
versionVersion to parse
Returns
(Major << 16) | (minor << 8) | sublevel.

The documentation for this struct was generated from the following file: