remove old generatoer, use new generator
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user