lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: Minor.
Date Tue, 10 Feb 2015 09:04:27 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 36f11ea7b -> a947b9227


Minor.


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

Branch: refs/heads/master
Commit: a947b922758042e0a77440f0081c97c186493fe4
Parents: 36f11ea
Author: Guido Tagliavini Ponce <t-gupon@microsoft.com>
Authored: Mon Feb 9 17:58:36 2015 -0800
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Feb 10 11:03:49 2015 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a947b922/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
index f1f071d..2a0558b 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -132,9 +132,8 @@ namespace Lucene.Net.Search
 
             // convert the string into a utf32 int[] representation for fast comparisons
             string utf16 = term.Text();
-            //LUCENE TO-DO
             //this.TermText = new int[utf16.codePointCount(0, utf16.Length)];
-            this.TermText = new int[utf16.Length];
+            this.TermText = new int[Character.CodePointCount(utf16, 0, utf16.Length)];
             for (int cp, i = 0, j = 0; i < utf16.Length; i += Character.CharCount(cp))
             {
                 TermText[j++] = cp = Character.CodePointAt(utf16, i);


Mime
View raw message