From 8a283fea75a1a7e18ea2c44c36c5f18cb38da87d Mon Sep 17 00:00:00 2001 From: Booklordofthedings Date: Mon, 27 Nov 2023 17:02:48 +0100 Subject: [PATCH] added remnant --- BeefLibs/corlib/src/String.bf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BeefLibs/corlib/src/String.bf b/BeefLibs/corlib/src/String.bf index 5151be89..29f9b27e 100644 --- a/BeefLibs/corlib/src/String.bf +++ b/BeefLibs/corlib/src/String.bf @@ -3113,6 +3113,14 @@ namespace System return mMatchPos < mStrLen && (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries) || mStrLen != 0); } } + + public StringView Remnant + { + get + { + return .(mPtr + mMatchPos + 1, mStrLen - mMatchPos); + } + } public bool MoveNext() mut {