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:
parent
475e82e1c3
commit
f8da7eb618
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue