public static void Main()
{
String str = "a𝄀あc";
- MText mt = new MText (str);
+ MText mt = new MText (str), mt2;
- Console.WriteLine ((object) str + mt);
+ Console.WriteLine (str + mt);
+ Console.WriteLine (mt + str);
+ Console.WriteLine (mt + 'a');
+ mt2 = mt.Dup ();
+ mt2 += str;
+ Console.WriteLine (mt2);
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);
}
}
const int DEPTH = 10;
static MText mt = new MText ("0123456789");
static MSymbol key = MSymbol.PropertyKey ("k");
- static MSymbol key_r = MSymbol.PropertyKey ("k",
- MProperty.Flags.RearSticky);
- static MSymbol key_f = MSymbol.PropertyKey ("k",
- MProperty.Flags.FrontSticky);
- static MSymbol key_rf = MSymbol.PropertyKey ("k",
- (MProperty.Flags.RearSticky
- | MProperty.Flags.FrontSticky));
- static MSymbol key_s = MSymbol.PropertyKey ("k",
- MProperty.Flags.Sensitive);
- static MSymbol key_rs = MSymbol.PropertyKey ("k",
- (MProperty.Flags.RearSticky
- | MProperty.Flags.Sensitive));
- static MSymbol key_fs = MSymbol.PropertyKey ("k",
- (MProperty.Flags.FrontSticky
- | MProperty.Flags.Sensitive));
- static MSymbol key_rfs = MSymbol.PropertyKey ("k",
- (MProperty.Flags.RearSticky
- | MProperty.Flags.FrontSticky
- | MProperty.Flags.Sensitive));
-
static MSymbol val0 = MSymbol.Of ("0");
static MSymbol val1 = MSymbol.Of ("1");
static MSymbol val2 = MSymbol.Of ("2");