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); }
public static bool IsCjkUnifiedIdeographs(char ch) { return(UnicodeBlock.Of(ch) == UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS); }