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

            if (!children.TryGetValue(c, out res))
            {
                res = new InflectionTrie();
                children.Add(c, res);
            }
            return(res);
        }
Exemple #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;
     }
 }
Exemple #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;
     }
 }