From: handa Date: Mon, 30 Mar 2009 12:02:14 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024536b9ee32dcd1f3552573b095a711c7b3ad71;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/MSymbol.cs b/MSymbol.cs index 30f80d4..1fdd4ac 100644 --- a/MSymbol.cs +++ b/MSymbol.cs @@ -42,7 +42,7 @@ namespace M17N.Core foreach (char c in data.name) { - if (c == '\\' || c == ' ' || c == '\'' || c == '\"') + if (c == '\\' || c == ' ' || c == '\'' || c == '\"' || c == ':') str += "\\"; str += c; } diff --git a/test-plist.cs b/test-plist.cs index 0730a28..958170c 100644 --- a/test-plist.cs +++ b/test-plist.cs @@ -6,11 +6,14 @@ public class Test { public static void Main() { - MSymbol sym = new MSymbol ("symbol"); + MSymbol sym1 = new MSymbol ("sym1"); + MSymbol sym2 = new MSymbol ("sym2"); MPlist plist = new MPlist (); - MText mt = new MText ("abc"); + MText mt1 = new MText ("abc"); + MText mt2 = new MText ("ABC"); - plist.put (sym, mt); + plist.put (sym1, mt1); + plist.put (sym2, mt2); Console.WriteLine (plist); } diff --git a/test-sym.cs b/test-sym.cs index c0e4a9f..9160c5a 100644 --- a/test-sym.cs +++ b/test-sym.cs @@ -8,7 +8,7 @@ public class Test { MSymbol sym1 = new MSymbol ("symbol"); MSymbol sym2 = new MSymbol ("symbol"); - MSymbol sym3 = new MSymbol ("another symbol"); + MSymbol sym3 = new MSymbol ("another sym:bol"); Console.WriteLine ("sym1 = {0}", sym1); Console.WriteLine ("sym2 = {0}", sym2);