iTextSharp.text.pdf.hyphenation.Hyphenator.GetHyphenationTree C# (CSharp) 메소드

GetHyphenationTree() 공개 정적인 메소드

public static GetHyphenationTree ( String lang, String country ) : HyphenationTree
lang String
country String
리턴 HyphenationTree
        public static HyphenationTree GetHyphenationTree(String lang,
                String country) {
            String key = lang;
            // check whether the country code has been used
            if (country != null && !country.Equals("none")) {
                key += "_" + country;
            }
                // first try to find it in the cache
            if (hyphenTrees.ContainsKey(key)) {
                return (HyphenationTree)hyphenTrees[key];
            }
            if (hyphenTrees.ContainsKey(lang)) {
                return (HyphenationTree)hyphenTrees[lang];
            }

            HyphenationTree hTree = GetResourceHyphenationTree(key);
            //if (hTree == null)
            //    hTree = GetFileHyphenationTree(key);
            // put it into the pattern cache
            if (hTree != null) {
                hyphenTrees[key] = hTree;
            }
            return hTree;
        }