示例#1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Inits the COM.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private static void InitTheCom()
		{
			if (s_charPropEngine == null)
				s_charPropEngine = LgIcuCharPropEngineClass.Create();
		}
 private static bool IsWhite(LgIcuCharPropEngine cpe, char ch)
 {
     return(cpe.get_GeneralCategory(ch) == LgGeneralCharCategory.kccZs);
 }
示例#3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Release the character property engine.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public static void ReleaseTheCom()
		{
			if (s_charPropEngine != null)
			{
				Marshal.ReleaseComObject(s_charPropEngine);
				s_charPropEngine = null;
			}
		}
示例#4
0
		private static bool IsWhite(LgIcuCharPropEngine cpe, char ch)
		{
			return cpe.get_GeneralCategory(ch) == LgGeneralCharCategory.kccZs;
		}