Lucene.Net.Core.Util.Automaton.RegExp: Cleaned up implementation of Next() and 
Match() to match Lucene


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

Branch: refs/heads/api-work
Commit: 40ba5675dabc205bb5cdbe906bdfb0c05b14c3f0
Parents: 1c3dbad
Author: Shad Storhaug <[email protected]>
Authored: Sun Mar 26 06:46:40 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Sun Mar 26 08:54:09 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Automaton/RegExp.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/40ba5675/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Automaton/RegExp.cs 
b/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
index ced21d5..87be9eb 100644
--- a/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
+++ b/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
@@ -979,7 +979,7 @@ namespace Lucene.Net.Util.Automaton
             {
                 return false;
             }
-            if (Character.CodePointAt(b, pos) == c)
+            if (b.CodePointAt(pos) == c)
             {
                 pos += Character.CharCount(c);
                 return true;
@@ -998,7 +998,7 @@ namespace Lucene.Net.Util.Automaton
             {
                 throw new System.ArgumentException("unexpected end-of-string");
             }
-            int ch = Character.CodePointAt(b, pos);
+            int ch = b.CodePointAt(pos);
             pos += Character.CharCount(ch);
             return ch;
         }

Reply via email to