-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces ParserRegex
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.ParserRegex[[ParserRegex]]
end
Type | Name | Methods |
---|---|---|
Dictionary <GroupType , int > |
GroupMapping stores the mapping from group type to group index in the regular expression |
get |
string |
Pattern stores the regular expression groups that will be mapped to group types |
get, set |
IParserPatternMatcher |
PatternMatcher |
get |
Returns | Name |
---|---|
void |
AddMapping (object mapKey, object mapValue)helper method to enable script parsers to app regex mapping the first parameter specifies the group type contained in the regex pattern the second parameter specifies the group index to retrieve in the matched regex pattern |
GroupType
public ParserRegex(IParserPatternMatcher pattern)
Type | Name | Description |
---|---|---|
IParserPatternMatcher |
pattern |
public void AddMapping(object mapKey, object mapValue)
Type | Name | Description |
---|---|---|
object |
mapKey | group type |
object |
mapValue | group index |
helper method to enable script parsers to app regex mapping the first parameter specifies the group type contained in the regex pattern the second parameter specifies the group index to retrieve in the matched regex pattern
public IParserPatternMatcher PatternMatcher { get; }
public string Pattern { get; set; }
stores the regular expression groups that will be mapped to group types
public Dictionary<GroupType, int> GroupMapping { get; }
stores the mapping from group type to group index in the regular expression
Generated with ModularDoc