Esempio n. 1
0
        public static ILineFilter CreateFilter(string filterRegex, 
            IDictionary<HighlightColor.ColorIndex, string> highlightColorMap,
            string trimToRegex, string trimFromRegex, string trimMiddleRegex)
        {
            var filter = new FileLineRegexFilter(filterRegex)
            {
                DownstreamMember = new HighlightProcessor(highlightColorMap)
            };

            filter.DownstreamMember.DownstreamMember = CreateTrimProcessor(trimToRegex, trimFromRegex, trimMiddleRegex);

            return filter;
        }
Esempio n. 2
0
        public static ILineFilter CreateFilter(string filterRegex,
                                               IDictionary <HighlightColor.ColorIndex, string> highlightColorMap,
                                               string trimToRegex, string trimFromRegex, string trimMiddleRegex)
        {
            var filter = new FileLineRegexFilter(filterRegex)
            {
                DownstreamMember = new HighlightProcessor(highlightColorMap)
            };

            filter.DownstreamMember.DownstreamMember = CreateTrimProcessor(trimToRegex, trimFromRegex, trimMiddleRegex);

            return(filter);
        }