update_database_directories ();
foreach (KeyValuePair<Tag, MDatabase[]> item in DBDictMulti)
if (item.Key.Match (tag))
- for (j = 0; j < 4; j++)
+ for (int j = 0; j < 4; j++)
if (item.Value[j] != null)
if (item.Value[j].DBStatus == MDBStatus.OUTDATED)
item.Value[j].expand_wildcard (j);
- for (int i = 0; i < 4 && tag.Tags[i] == Mwildcard; i++);
+ int i;
+ for (i = 0; i < 4 && tag.Tags[i] == Mwildcard; i++);
if (i == 4)
{
// No wildcard.
+ MDatabase[] mdbs;
if (DBDict.TryGetValue (tag, out mdbs))
for (int j = 0; j < 4; j++)
if (mdbs[j] != null)
-CS=gmcs
+CS=gmcs2
M17N_SRC = M17N.cs
CORE_SRC = MSymbol.cs MPlist.cs MText.cs MDatabase.cs
--- /dev/null
+using System;
+using System.Collections.Generic;
+using M17N;
+using M17N.Core;
+
+public class Test
+{
+ public static void Main ()
+ {
+ M17n.debug = true;
+ MDatabase.ApplicationDir = "/usr/local/share/m17n";
+
+ MDatabase.ListDirs ();
+ List<MDatabase> mdb_list
+ = MDatabase.List (new MDatabase.Tag (MSymbol.Of ("*")));
+ Console.WriteLine ("Total {0} databases:", mdb_list.Count);
+ foreach (MDatabase db in mdb_list)
+ Console.WriteLine (db);
+ }
+}
const int DEPTH = 10;
static MText mt = new MText ("0123456789");
static MSymbol key = MSymbol.PropertyKey ("___");
+#if false
static MSymbol key_r = MSymbol.PropertyKey ("r__",
MProperty.Flags.RearSticky);
static MSymbol key_f = MSymbol.PropertyKey ("_f_",
(MProperty.Flags.RearSticky
| MProperty.Flags.FrontSticky
| MProperty.Flags.Sensitive));
+#endif
static MSymbol val0 = MSymbol.Of ("0");
static MSymbol val1 = MSymbol.Of ("1");