working on source gen, now on charset analyse

This commit is contained in:
Youmu Liu
2026-07-02 20:44:18 +08:00
parent 4e1e659259
commit 8c504a67d7
2 changed files with 117 additions and 0 deletions
@@ -59,6 +59,7 @@ namespace StgSharp.RegularAnalysis.Text
{
int process_count = 0;
int last = int.Min(origin_span.Length, index + 8);
opt_win_sp.Clear();
origin_span[index..last].CopyTo(opt_win_sp);
int result;
@@ -140,6 +141,7 @@ namespace StgSharp.RegularAnalysis.Text
{
int process_count = 0;
int last = int.Min(origin_span.Length, index + 8);
opt_win_sp.Clear();
origin_span[index..last].CopyTo(opt_win_sp);
if (opt_win_sp[0] is IRegexComplex { IsFullyOptimized: true } skip)