From: handa Date: Fri, 19 Jun 2009 11:18:54 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3aa084ace8a9382f7c4685b80acc38b6c70218a0;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/MDatabase.cs b/MDatabase.cs index 2ab1be2..6574575 100644 --- a/MDatabase.cs +++ b/MDatabase.cs @@ -497,7 +497,7 @@ namespace M17N.Core foreach (MDatabase mdb in kv.Value) Console.WriteLine (mdb); - Console.WriteLine ("[NDITCT]"); + Console.WriteLine ("[NDICT]"); foreach (KeyValuePair> kv in ndict) foreach (MDatabase mdb in kv.Value) Console.WriteLine (mdb); @@ -787,7 +787,7 @@ namespace M17N.Core return false; } for (int i = 1; i < 4; i++) - if (DBDirs[i] != null) + if (DBDirs[i] != null && DBDirs[i].Dirname != null) { string filename = Path.Combine (DBDirs[i].Dirname, Info.Filename); if (File.Exists (filename)) @@ -883,13 +883,13 @@ namespace M17N.Core public static DirectoryInfo[] DirectoryList () { - List dirs = new List; + List dirs = new List (); for (int i = 1; i < 4; i++) if (DBDirs[i].Dirname != null) { DBDirs[i].Refresh (); - if (DBDirs[i].DirInfo) + if (DBDirs[i].DirInfo != null) dirs.Add (DBDirs[i].DirInfo); } return dirs.ToArray (); diff --git a/database.cs b/database.cs index a2ad183..22f6c08 100644 --- a/database.cs +++ b/database.cs @@ -8,12 +8,17 @@ public class Test { public static void Main () { - M17n.debug = true; + //M17n.debug = true; MDatabase.ApplicationDir = "/usr/local/share/m17n"; MDatabase.Tag tag = new MDatabase.Tag (MSymbol.Of ("input-method"), MSymbol.t, MSymbol.Of ("unicode")); + MDatabase.Dump (); + + foreach (DirectoryInfo dirinfo in MDatabase.DirectoryList ()) + Console.WriteLine (dirinfo.FullName); + while (true) { Console.Write ("mdb> ");