/// ------------------------------------------------------------------------------------ /// <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); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Release the character property engine. /// </summary> /// ------------------------------------------------------------------------------------ public static void ReleaseTheCom() { if (s_charPropEngine != null) { Marshal.ReleaseComObject(s_charPropEngine); s_charPropEngine = null; } }
private static bool IsWhite(LgIcuCharPropEngine cpe, char ch) { return cpe.get_GeneralCategory(ch) == LgGeneralCharCategory.kccZs; }