예제 #1
0
 public Hyphenation hyphenate(char[] word, int offset, int len)
 {
     if (hyphenTree == null)
     {
         return(null);
     }
     return(hyphenTree.hyphenate(word, offset, len, remainCharCount,
                                 pushCharCount));
 }
예제 #2
0
        public static Hyphenation hyphenate(string lang, string country,
                                            char[] word, int offset, int len,
                                            int leftMin, int rightMin)
        {
            HyphenationTree hTree = getHyphenationTree(lang, country);

            if (hTree == null)
            {
                Console.Error.WriteLine("Error building hyphenation tree for language "
                                        + lang);
                return(null);
            }
            return(hTree.hyphenate(word, offset, len, leftMin, rightMin));
        }