mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Added IndexRange version of String.Substring
This commit is contained in:
parent
b3946d4487
commit
475e82e1c3
1 changed files with 6 additions and 0 deletions
|
@ -827,6 +827,12 @@ namespace System
|
||||||
return .(this, pos, length);
|
return .(this, pos, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NoDiscard]
|
||||||
|
public StringView Substring(IndexRange range)
|
||||||
|
{
|
||||||
|
return .(this)[range];
|
||||||
|
}
|
||||||
|
|
||||||
public void Append(StringView strView)
|
public void Append(StringView strView)
|
||||||
{
|
{
|
||||||
Append(strView.Ptr, strView.Length);
|
Append(strView.Ptr, strView.Length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue