using System; using System.Collections.Generic; using M17N.Core; public class Test { public static void Main() { String str = "a𝄀あc"; MText mt = new MText (str); Console.WriteLine ((object) str + mt); Console.WriteLine ("{0}, Length={1}", mt, mt.Length); foreach (int c in mt) Console.WriteLine ("U+{0:X4}", c); Console.WriteLine (mt + new MText ("漢字")); MText mt2 = mt.Dup (); mt[1] = 'b'; Console.WriteLine (mt); Console.WriteLine (mt2); } }