public Hyphenation hyphenate(char[] word, int offset, int len) { if (hyphenTree == null) { return(null); } return(hyphenTree.hyphenate(word, offset, len, remainCharCount, pushCharCount)); }
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)); }