mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Merge pull request #1905 from Booklordofthedings/master
added remnant property
This commit is contained in:
commit
59e960b218
1 changed files with 22 additions and 0 deletions
|
@ -3113,6 +3113,17 @@ namespace System
|
|||
return mMatchPos < mStrLen && (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries) || mStrLen != 0);
|
||||
}
|
||||
}
|
||||
|
||||
public StringView Remnant
|
||||
{
|
||||
get
|
||||
{
|
||||
int offset = 0;
|
||||
if(mMatchPos < mStrLen)
|
||||
offset = 1;
|
||||
return .(mPtr + mMatchPos + offset, mStrLen - (mMatchPos+offset));
|
||||
}
|
||||
}
|
||||
|
||||
public bool MoveNext() mut
|
||||
{
|
||||
|
@ -3298,6 +3309,17 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public StringView Remnant
|
||||
{
|
||||
get
|
||||
{
|
||||
int offset = 0;
|
||||
if(mMatchPos < mStrLen)
|
||||
offset = mMatchLen;
|
||||
return .(mPtr + mMatchPos + offset, mStrLen - (mMatchPos+offset));
|
||||
}
|
||||
}
|
||||
|
||||
public bool MoveNext() mut
|
||||
{
|
||||
if (mCurCount >= mMaxCount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue