1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00

Added String.Substring

This commit is contained in:
Brian Fiete 2020-12-29 09:23:50 -08:00
parent c91e8e0fb4
commit 8dbfd1b0e3

View file

@ -716,6 +716,18 @@ namespace System
return i;
}
[NoDiscard]
public StringView Substring(int pos)
{
return .(this, pos);
}
[NoDiscard]
public StringView Substring(int pos, int length)
{
return .(this, pos, length);
}
public void Append(StringView strView)
{
Append(strView.Ptr, strView.Length);