mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 00:50:25 +02:00
31 lines
412 B
Beef
31 lines
412 B
Beef
using System;
|
|
|
|
namespace IDE.Util
|
|
{
|
|
class SemVer
|
|
{
|
|
public String mVersion ~ delete _;
|
|
|
|
public this()
|
|
{
|
|
|
|
}
|
|
|
|
public this(SemVer semVer)
|
|
{
|
|
if (semVer.mVersion != null)
|
|
mVersion = new String(semVer.mVersion);
|
|
}
|
|
|
|
public this(StringView version)
|
|
{
|
|
mVersion = new String(version);
|
|
}
|
|
|
|
public Result<void> Parse(StringView ver)
|
|
{
|
|
mVersion = new String(ver);
|
|
return .Ok;
|
|
}
|
|
}
|
|
}
|