lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccurr...@apache.org
Subject git commit: LUCENENET-517 - Fixed SnowballProgram to match java version Contributor: David E. Narvaez <dnarvaez@inteldata.com>
Date Wed, 27 Mar 2013 19:55:54 GMT
Updated Branches:
  refs/heads/master c7f9cab71 -> 1d08baedd


LUCENENET-517 - Fixed SnowballProgram to match java version
Contributor: David E. Narvaez <dnarvaez@inteldata.com>


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/1d08baed
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/1d08baed
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/1d08baed

Branch: refs/heads/master
Commit: 1d08baeddd49d042c6346ddf17a3fc22f4749fff
Parents: c7f9cab
Author: ccurrens <currens.chris@gmail.com>
Authored: Wed Mar 27 12:55:37 2013 -0700
Committer: ccurrens <currens.chris@gmail.com>
Committed: Wed Mar 27 12:55:37 2013 -0700

----------------------------------------------------------------------
 .../Snowball/SF/Snowball/SnowballProgram.cs        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1d08baed/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs b/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
index 7164cfb..e3b7fa1 100644
--- a/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
+++ b/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
@@ -417,8 +417,8 @@ namespace SF.Snowball
 		protected internal virtual int replace_s(int c_bra, int c_ket, System.String s)
 		{
 			int adjustment = s.Length - (c_ket - c_bra);
-            if (current.Length > bra)
-    			current.Replace(current.ToString(bra, ket - bra), s, bra, ket - bra);
+            if (current.Length > c_bra)
+    			current.Replace(current.ToString(c_bra, c_ket - c_bra), s, c_bra, c_ket - c_bra);
             else
                 current.Append(s);
 			limit += adjustment;


Mime
View raw message