/// <summary> /// Determines whether the specified code point is a symbol character /// </summary> /// <param name="characterCode">the code point to be tested</param> public static bool IsSymbol(int characterCode) { var nAns = NativeMethods.u_charType(characterCode); return(nAns == (int)UCharCategory.MATH_SYMBOL || nAns == (int)UCharCategory.CURRENCY_SYMBOL || nAns == (int)UCharCategory.MODIFIER_SYMBOL || nAns == (int)UCharCategory.OTHER_SYMBOL); }
///<summary> /// Get the general character category value for the given code point. ///</summary> ///<param name="ch">the code point to be checked</param> ///<returns></returns> public static UCharCategory GetCharType(int ch) { return((UCharCategory)NativeMethods.u_charType(ch)); }