Пример #1
0
        public FastReplace(SortedDictionary <string, string> _dic)
        {
            var cmp = new WordMappingComparer();

            Dic_ALL     = _dic;
            Dic_Grouped = Dic_ALL.OrderBy(x => x.Key, cmp).GroupBy(x => x.Key.First()).ToDictionary(x => x.Key, x => x.ToList());
        }
Пример #2
0
            public ChineseConverter()
            {
                var cmp = new WordMappingComparer();

                _dictionary = new SortedDictionary <string, string>(cmp);
                _logs       = new StringBuilder();
                _hasError   = false;
            }