1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Added IndexRange version of String.Substring

This commit is contained in:
Brian Fiete 2024-09-25 14:54:46 -04:00
parent b3946d4487
commit 475e82e1c3

View file

@ -827,6 +827,12 @@ namespace System
return .(this, pos, length);
}
[NoDiscard]
public StringView Substring(IndexRange range)
{
return .(this)[range];
}
public void Append(StringView strView)
{
Append(strView.Ptr, strView.Length);