Exemplo n.º 1
0
 public static WildcardPatternMatcher.PatternElement[] Parse(WildcardPattern pattern, WildcardPatternMatcher.CharacterNormalizer characterNormalizer)
 {
     WildcardPatternMatcher.MyWildcardPatternParser parser = new WildcardPatternMatcher.MyWildcardPatternParser {
         _characterNormalizer = characterNormalizer,
         _regexOptions        = WildcardPatternToRegexParser.TranslateWildcardOptionsIntoRegexOptions(pattern.Options)
     };
     WildcardPatternParser.Parse(pattern, parser);
     return(parser._patternElements.ToArray());
 }
Exemplo n.º 2
0
 public static WildcardPatternMatcher.PatternElement[] Parse(WildcardPattern pattern, WildcardPatternMatcher.CharacterNormalizer characterNormalizer)
 {
     WildcardPatternMatcher.MyWildcardPatternParser parser = new WildcardPatternMatcher.MyWildcardPatternParser {
         _characterNormalizer = characterNormalizer,
         _regexOptions = WildcardPatternToRegexParser.TranslateWildcardOptionsIntoRegexOptions(pattern.Options)
     };
     WildcardPatternParser.Parse(pattern, parser);
     return parser._patternElements.ToArray();
 }