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

StringView.Substring IndexRange version

This commit is contained in:
Brian Fiete 2024-09-25 18:57:51 -04:00
parent 475e82e1c3
commit f8da7eb618

View file

@ -4145,6 +4145,12 @@ namespace System
return .(this, pos, length);
}
[NoDiscard]
public StringView Substring(IndexRange range)
{
return .(this)[range];
}
public (char32, int) GetChar32(int idx)
{
Debug.Assert((uint)idx < (uint)mLength);