1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00
Beef/IDE/src/util/SemVer.bf
2021-02-25 08:10:21 -08:00

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;
}
}
}