mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added StringView.StartWith(char)
This commit is contained in:
parent
18764073dd
commit
c84da66758
1 changed files with 7 additions and 0 deletions
|
@ -3023,6 +3023,13 @@ namespace System
|
|||
TrimEnd();
|
||||
}
|
||||
|
||||
public bool StartsWith(char8 c)
|
||||
{
|
||||
if (mLength == 0)
|
||||
return false;
|
||||
return Ptr[0] == c;
|
||||
}
|
||||
|
||||
public bool EndsWith(char8 c)
|
||||
{
|
||||
if (mLength == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue