From: ntakahas Date: Tue, 30 Jun 2009 07:53:04 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0002af9be23a4e9effeecee52bb65fd8963a4eb;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/rearsensitive.cs b/rearsensitive.cs index d10f8cc..2848e08 100644 --- a/rearsensitive.cs +++ b/rearsensitive.cs @@ -9,7 +9,7 @@ public class Test const int DEPTH = 10; static MText mt = new MText ("0123456789"); static MSymbol key = MSymbol.PropertyKey ("rse", - MProperty.Flags.Sensitive); + MProperty.Flags.RearSensitive); static MSymbol val0 = MSymbol.Of ("0"); static MSymbol val1 = MSymbol.Of ("1"); static MSymbol val2 = MSymbol.Of ("2"); @@ -79,12 +79,16 @@ public class Test sym = valtable[from - 1]; for (i = from - 1; i >= 0 && valtable[i] == sym; i--) valtable[i] = null; + for (i = from; i < LENGTH && valtable[i] == sym; i++) + valtable[i] = null; } if (to < LENGTH && valtable[to - 1] != null) { sym = valtable[to - 1]; for (i = to - 1; i >= 0 && valtable[i] == sym; i--) valtable[i] = null; + for (i = to; i < LENGTH && valtable[i] == sym; i++) + valtable[i] = null; } // copy