コード例 #1
0
ファイル: PUACharacter.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Inits the COM.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private static void InitTheCom()
		{
			if (s_charPropEngine == null)
				s_charPropEngine = LgIcuCharPropEngineClass.Create();
		}
コード例 #2
0
 private static bool IsWhite(LgIcuCharPropEngine cpe, char ch)
 {
     return(cpe.get_GeneralCategory(ch) == LgGeneralCharCategory.kccZs);
 }
コード例 #3
0
ファイル: PUACharacter.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <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;
		}