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); }
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)); }
public void TestStarDictIdx() { var info = new StarDictInfo("data/jargon.ifo"); var idx = new StarDictIdx(info); }