示例#1
0
 public static StarDict TryOpen(string basename, Encoding enc = null)
 {
     var info = new StarDictInfo(basename + ".ifo");
     if (!info.IsValid)
         return null;
     StarDictIdx idx = new StarDictIdx(info);
     return new StarDict(info, idx, basename + (File.Exists(basename + ".dict") ? ".dict" : ".dict.dz"),enc);
 }
示例#2
0
        public static StarDict TryOpen(string basename, Encoding enc = null)
        {
            var info = new StarDictInfo(basename + ".ifo");

            if (!info.IsValid)
            {
                return(null);
            }
            StarDictIdx idx = new StarDictIdx(info);

            return(new StarDict(info, idx, basename + (File.Exists(basename + ".dict") ? ".dict" : ".dict.dz"), enc));
        }
示例#3
0
文件: Test.cs 项目: blankego/CjkStew
 public void TestStarDictIdx()
 {
     var info = new StarDictInfo("data/jargon.ifo");
     var idx = new StarDictIdx(info);
 }