1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Added String.StartsWith(char8)

This commit is contained in:
razvan.stefanescu 2020-01-22 10:56:52 +02:00
parent db5e5f034a
commit 9c833d53bb

View file

@ -1709,6 +1709,11 @@ namespace System
return EqualsHelper(this.Ptr + mLength - b.[Friend]mLength, b.Ptr, b.[Friend]mLength);
}
public bool StartsWith(char8 c)
{
return mLength != 0 && Ptr[0] == c;
}
public bool EndsWith(char8 c)
{
if (mLength == 0)