Hyphenate() public method

public Hyphenate ( String word, int remainCharCount, int pushCharCount ) : Hyphenation
word String
remainCharCount int
pushCharCount int
return Hyphenation
Beispiel #1
0
        /// <summary>
        /// </summary>
        /// <param name="lang"></param>
        /// <param name="country"></param>
        /// <param name="word"></param>
        /// <param name="offset"></param>
        /// <param name="len"></param>
        /// <param name="leftMin"></param>
        /// <param name="rightMin"></param>
        /// <returns>a hyphenation object</returns>
        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)
            {
                //log.Error("Error building hyphenation tree for language "
                //                       + lang);
                return(null);
            }
            return(hTree.Hyphenate(word, offset, len, leftMin, rightMin));
        }