*** empty log message ***
[m17n/m17n-lib-cs.git] / mtext.cs
1 using System;
2 using System.Collections.Generic;
3 using M17N.Core;
4
5 public class Test
6 {
7   public static void Main()
8   {
9     String str = "a𝄀あc";
10     MText mt = new MText (str);
11
12     Console.WriteLine ("{0}, Length={1}", mt, mt.Length);
13     foreach (int c in mt)
14       Console.WriteLine ("U+{0:X4}", c);
15     Console.WriteLine (mt + new MText ("漢字"));
16
17     MText mt2 = mt.Dup ();
18     mt[1] = 'b';
19     Console.WriteLine (mt);
20     Console.WriteLine (mt2);
21   }
22 }