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
}
}
+2 -2
View File
@@ -21,8 +21,8 @@ namespace StgSharp
{
private static string[] regexSource = [
@"(?<name>.*)234",
/*
@"12(1234|(012.*34)|9125)34",
/**/
@"http|https|ftp|ftps",
@"abc[0-9]x|abc[0-9]y|abd[0-9]x|abd[0-9]y|xyz",
@"get_name|get_value|get_type|set_name|set_value|set_type",