|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2020-09-28
|
|
* Created: 2020-09-28
|
|
- * Changed: 2023-02-23
|
|
|
|
|
|
+ * Changed: 2023-05-16
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -17,6 +17,7 @@ using std::regex;
|
|
using std::regex_match;
|
|
using std::regex_match;
|
|
using std::stoi;
|
|
using std::stoi;
|
|
using std::string;
|
|
using std::string;
|
|
|
|
+using std::string_view;
|
|
using std::to_string;
|
|
using std::to_string;
|
|
|
|
|
|
Version::Version(version_type _majorVersion, version_type _minorVersion, version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
|
|
Version::Version(version_type _majorVersion, version_type _minorVersion, version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
|
|
@@ -90,7 +91,7 @@ void Version::setPatchVersion(version_type _patch)
|
|
this->patchVersion = _patch;
|
|
this->patchVersion = _patch;
|
|
}
|
|
}
|
|
|
|
|
|
-bool Version::_isValid(const string &_versionString)
|
|
|
|
|
|
+bool Version::_isValid(string_view _versionString)
|
|
{
|
|
{
|
|
bool isValidVersionString{};
|
|
bool isValidVersionString{};
|
|
static regex versionRegex{R"(\d+[.]\d+[.]\d+)"};
|
|
static regex versionRegex{R"(\d+[.]\d+[.]\d+)"};
|