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:
parent
db5e5f034a
commit
9c833d53bb
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue