Beispiel #1
0
 private InflectionTrie get(char c)
 {
     InflectionTrie res;
     if (!children.TryGetValue(c, out res)) {
         res = new InflectionTrie();
         children.Add(c, res);
     }
     return res;
 }
Beispiel #2
0
        private InflectionTrie get(char c)
        {
            InflectionTrie res;

            if (!children.TryGetValue(c, out res))
            {
                res = new InflectionTrie();
                children.Add(c, res);
            }
            return(res);
        }
Beispiel #3
0
 private void rebuildIndex()
 {
     index = new Dictionary <string, InflectionTrie>();
     foreach (var conj in conjugations.Values)
     {
         var trie = new InflectionTrie();
         foreach (var form in conj.Tenses)
         {
             trie.addForm(form, conjugations);
         }
         index[conj.Name] = trie;
     }
 }
Beispiel #4
0
 private void rebuildIndex()
 {
     index = new Dictionary<string, InflectionTrie>();
     foreach (var conj in conjugations.Values) {
         var trie = new InflectionTrie();
         foreach (var form in conj.Tenses) {
             trie.addForm(form, conjugations);
         }
         index[conj.Name] = trie;
     }
 }