*** empty log message ***
[m17n/m17n-lib-cs.git] / MSymbol.cs
index 14e3e3b..06e5370 100644 (file)
@@ -1,7 +1,7 @@
 using System;
-using M17N;
+using M17N.Core;
 
-namespace M17N
+namespace M17N.Core
 {
   public class MPlist
   {
@@ -183,79 +183,4 @@ namespace M17N
       return data.plist.put (key, val);
     }
   }
-
-  public class MTextProperty
-  {
-  }
-
-  public enum MTextFormat
-  {
-    MTEXT_FORMAT_US_ASCII,
-    MTEXT_FORMAT_UTF_8,
-    MTEXT_FORMAT_UTF_16BE,
-    MTEXT_FORMAT_UTF_16LE,
-    MTEXT_FORMAT_UTF_32BE,
-    MTEXT_FORMAT_UTF_32LE,
-  }
-
-  public class MText
-  {
-    private class MTextPlist : MPlist
-    {
-      public class MInterval
-      {
-       public MPlist stack;
-       public int nprops;
-       public int start, end;
-       public MInterval prev, next;
-      }
-
-      MInterval head, tail;
-
-      public MTextPlist (MText mt)
-      {
-       head = tail = new MInterval ();
-       head.start = 0;
-       head.end = mt.nchars;
-      }
-    }
-
-    private string str;
-    private int nchars;
-    private int nunits;
-    private int cache_pos;
-    private int cache_idx;
-    private MTextPlist plist;
-
-    public MText (byte str, MTextFormat format)
-    {
-      
-    }
-  }
-
-
-  public class Test
-  {
-    public static void Main()
-    {
-      MSymbol sym1, sym2;
-
-      sym1 = new MSymbol ("abc");
-      Console.WriteLine (sym1.ToString ());
-      sym2 = new MSymbol ("abc");
-      Console.WriteLine (sym2.ToString ());
-      Console.WriteLine (sym1 == sym2 ? "OK" : "NO");
-      sym1.put (MSymbol.nil, MSymbol.t);
-
-      MPlist p = new MPlist ();
-
-      p.put (MSymbol.t, sym1);
-      p.push (MSymbol.t, sym2);
-
-      MPlist pp = new MPlist ();
-      pp.put (MSymbol.t, p);
-      Console.WriteLine (pp.ToString ());
-      Console.WriteLine (p.get (MSymbol.t));
-    }
-  }
 }