Example #1
0
 private Pattern[] CompilePunctuationPatterns()
 {
     Pattern[] puncsPat = new Pattern[puncs.Length];
     for (int i = 0; i < puncs.Length; i++)
     {
         char punc = puncs[i];
         puncsPat[i] = patternMap.ComputeIfAbsent(GetEscapedPuncPattern(punc), null);
     }
     return(puncsPat);
 }