1
0
Fork 0
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:
Brian Fiete 2020-04-14 11:38:34 -07:00
parent 18764073dd
commit c84da66758

View file

@ -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)