*** empty log message ***
[m17n/m17n-lib-cs.git] / textprop.cs
1 using System;
2 using System.Collections.Generic;
3 using M17N;
4 using M17N.Core;
5
6 public class Test
7 {
8   public static void Main ()
9   {
10     String str = "0123456789";
11     MText mt = new MText (str);
12     MSymbol sym = new MSymbol ("sym");
13     MTextProperty prop1 = new MTextProperty (sym, "test1");
14     MTextProperty prop2 = new MTextProperty (sym, "test2");
15
16     M17N.M17N.debug = true;
17
18     mt.PushProp (2, 5, prop1);
19     mt.DumpProp ();
20     mt.PushProp (3, 6, prop2);
21     mt.DumpProp ();
22     mt.Del (4, 9);
23     mt.DumpProp ();
24     mt.Ins (5, new MText ("45678"));
25     mt.DumpProp ();
26     mt.PopProp (0, 3, sym);
27     mt.DumpProp ();
28     mt.PopProp (2, 8, sym);
29     mt.DumpProp ();
30   }
31 }