*** empty log message ***
[m17n/m17n-lib-cs.git] / mtext.cs
index 5610dbd..59c3245 100644 (file)
--- a/mtext.cs
+++ b/mtext.cs
@@ -20,5 +20,12 @@ public class Test
     foreach (int c in mt)
       Console.WriteLine ("U+{0:X4}", c);
     Console.WriteLine (mt + new MText ("漢字"));
+    Console.WriteLine (mt[2,4]);
+    mt[0] = '日';             // == mt.Del (0, 1); mt.Ins (0, char)
+    Console.WriteLine (mt);
+    mt[1,3] = new MText ('本');       // == mt.Del (1, 3); mt.Ins (1, mt)
+    Console.WriteLine (mt);
+    mt[1,2] = null;            // == mt.Del (1, 2)
+    Console.WriteLine (mt);
   }
 }