remove old generatoer, use new generator

This commit is contained in:
Youmu Liu
2026-07-28 18:11:59 +08:00
parent ac1e7c68f8
commit 3db2bfd9af
8 changed files with 731 additions and 369 deletions
+17 -1
View File
@@ -164,5 +164,21 @@ static void MatchCountAnyGroup(ReadOnlySpan<char> seq)
int ptr = 0;
int group_start = ptr;
int furthest = -1;
do
{
if((furthest = seq.LastIndexOf("123"))>0)
{
ptr += furthest + 3;
break;
}
} while(true);
// grouping
if(furthest >= 0)
{
ptr = furthest;
int group_end = ptr;
// group "name" matched from group_start to group_end
}
}