Example #1
0
        public static UnicodeBlock ForName(String blockName)
        {
            string name = blockName.ToUpper();

            if (!map.ContainsKey(name))
            {
                throw new ArgumentException("invalid block name");
            }

            UnicodeBlock block = map[name];

            return(block);
        }
Example #2
0
 public static bool IsCjkUnifiedIdeographs(char ch)
 {
     return(UnicodeBlock.Of(ch) == UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS);
 }