From: handa Date: Fri, 1 May 2009 07:02:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ac10578a8f79c6df14642725ef6ddae79bc7d2a6;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/Makefile b/Makefile index 772d2ce..c38faf4 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CS=gmcs M17N_SRC = M17N.cs CORE_SRC = MSymbol.cs MPlist.cs MText.cs MDatabase.cs -TEST_PROG = symbol.exe plist.exe mtext.exe textprop.exe r__.cs +TEST_PROG = symbol.exe plist.exe mtext.exe textprop.exe r__.cs _f_.cs all: ${TEST_PROG} diff --git a/mtext.cs b/mtext.cs index 07767d3..5610dbd 100644 --- a/mtext.cs +++ b/mtext.cs @@ -7,18 +7,18 @@ public class Test 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); } } diff --git a/textprop.cs b/textprop.cs index 0bef4ac..89b1656 100644 --- a/textprop.cs +++ b/textprop.cs @@ -9,26 +9,6 @@ public class Test 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");