utils/tools library

Functions

const2Pattern(List<List<String>> constantRules) String
constantEscape(String constant) String
enumAllConstants(List<List<String>> constantRules) List<String>
enumAllMatches(String text, List<List<String>> constantRules, {List<List<String>?>? templates}) List<Match>
enumAllTemplates(List<List<String>> constantRules, List<List<String>?> templates) List<String>
wd10 匹配 width_10 width_$ minwidth_$ maxwidth_$
enumSplitMatches(List<String> splitText, List<List<String>> constantRules, {List<List<String>?>? templates, List<List<List<String>>?>? matchedFromTemplate, int matchMode = 1}) List<List<RegExpMatch>>
enumSplitTemplates(List<List<String>> constantRules, List<List<String>?> templates, List<List<List<String>>?> matchedFromTemplate) List<List>
enumTokenName(Object? token) String
genIndices(int count) List<int>
groupPureOrLinkCapture(String string, String pattern, Map<int, List<int>> pureOrLinkGroupIndexs) List<String?>?
groupPureOrLink is patterns like this (()|()|())+? in case below r'exec(((( a)|( b)|( c))+?)| -name((( d)|( e)|( f))+?))+' replaceGroupIndexs is { 3 : 4,5,6, 8 : 9,10,11 }
multiply(List<String> patterns, List<String> templates, List<List<String>>? matched) List<List>
range(List<String>? texts) List<int>
RegstrInvoke(String invokeFrom, List<List> patternMappers, {int? maxCount, Function? invoker}) → dynamic
maxCount support upto 10.
splitTextRange(String pattern, List<String> splitText, {List<int>? cacheRange, int mode = 3}) List<String>
tokenName(Object token) String
varName(int index, [int total = 1]) String
wrapPrintRegExpLL(List<List<RegExpMatch>> target) List<List<RegExpMatch>>