Use() public method

public Use ( ) : void
return void
示例#1
0
        public static void SetICUDataFile(string icudatafile)
        {
            lock (s_dataLoadLock)
            {
                if (s_isDataLoaded)
                {
                    return;
                }
            }
            if (s_isDataLoaded)
            {
                return;
            }
            s_isDataLoaded = true;
            s_icuDataFile  = icudatafile;
            //----------
            int major, minor, revision;

            NativeTextBreakerLib.MyFtLibGetFullVersion(out major, out minor, out revision);
            if (dataHolder == null)
            {
                //dataHolder = new InMemoryIcuDataHolder(@"d:\WImageTest\icudt57l\icudt57l.dat");
                dataHolder = new InMemoryIcuDataHolder(icudatafile);
                dataHolder.Use();
            }
        }
 public static void SetICUDataFile(string icudatafile)
 {
     lock (s_dataLoadLock)
     {
         if (s_isDataLoaded)
         {
             return;
         }
     }
     if (s_isDataLoaded)
     {
         return;
     }
     s_isDataLoaded = true;
     s_icuDataFile = icudatafile;
     //----------
     int major, minor, revision;
     NativeTextBreakerLib.MyFtLibGetFullVersion(out major, out minor, out revision);
     if (dataHolder == null)
     {
         //dataHolder = new InMemoryIcuDataHolder(@"d:\WImageTest\icudt57l\icudt57l.dat");
         dataHolder = new InMemoryIcuDataHolder(icudatafile);
         dataHolder.Use();
     }
 }