From 024536b9ee32dcd1f3552573b095a711c7b3ad71 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 30 Mar 2009 12:02:14 +0000 Subject: [PATCH] *** empty log message *** --- MSymbol.cs | 2 +- test-plist.cs | 9 ++++++--- test-sym.cs | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) 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); -- 1.7.10.4