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

32 lines
412 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
using System;
namespace IDE.Util
{
class SemVer
{
public String mVersion ~ delete _;
2021-02-25 08:10:21 -08:00
public this()
{
}
public this(SemVer semVer)
{
if (semVer.mVersion != null)
mVersion = new String(semVer.mVersion);
}
public this(StringView version)
{
mVersion = new String(version);
}
2019-08-23 11:56:54 -07:00
public Result<void> Parse(StringView ver)
{
mVersion = new String(ver);
return .Ok;
}
}
}