Adding Regex.IsMatch(Span) and RegexRunner.Scan() methods (#65473)
* Adding Regex.IsMatch(Span) and RegexRunner.Scan() methods * Addressing some PR Feedback * Fixing case where span-based APIs are called from a precompiled regex and adding a test for it. * Adding Tests for IsMatch span overload * Refactor Run<TState> and Run to share centralized logic * Emit IsBoundary and IsECMABoundary instead of exposing them. * Address Emitter changes feedback. * Addressing PR Feedback. * Addressing most of the PR comments * Fix issue where runtextbeg and length do not match the size of the input * Add Precompiled tests for all overloads of methods. * Fix precompiled test failing in non-Windows due to new lines. * Apply suggestions from code review Co-authored-by: NStephen Toub <stoub@microsoft.com> * Addressing more PR Feedback * Fix protected Scan method * Addressing feedback and adding more tests * Fix few failing tests in Mono runtime Co-authored-by: NStephen Toub <stoub@microsoft.com>
Showing
此差异已折叠。
想要评论请 注册 或 登录