Lucene.Net.QueryParser: Renamed all type-derived properties and methods from 
Short, Int, Long, and Float to match CLR types Int16, Int32, Int64, and Single, 
respectively.


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

Branch: refs/heads/api-work
Commit: 67f5e6ca2b6ff44a4ac976d91df4d42961ac7122
Parents: ec70857
Author: Shad Storhaug <[email protected]>
Authored: Wed Feb 8 00:32:31 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Wed Feb 8 21:08:21 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs          | 6 ++++--
 .../Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs          | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67f5e6ca/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs 
b/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
index 0f0521d..2702716 100644
--- a/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
+++ b/src/Lucene.Net.QueryParser/Classic/QueryParserBase.cs
@@ -927,7 +927,7 @@ namespace Lucene.Net.QueryParsers.Classic
                 char curChar = input[i];
                 if (codePointMultiplier > 0)
                 {
-                    codePoint += HexToInt(curChar) * codePointMultiplier;
+                    codePoint += HexToInt32(curChar) * codePointMultiplier;
                     codePointMultiplier = Number.URShift(codePointMultiplier, 
4);
                     if (codePointMultiplier == 0)
                     {
@@ -979,8 +979,10 @@ namespace Lucene.Net.QueryParsers.Classic
 
         /// <summary>
         /// Returns the numeric value of the hexadecimal character
+        /// <para/>
+        /// NOTE: This was hexToInt() in Lucene
         /// </summary>
-        private static int HexToInt(char c)
+        private static int HexToInt32(char c)
         {
             if ('0' <= c && c <= '9')
             {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/67f5e6ca/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
----------------------------------------------------------------------
diff --git 
a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs 
b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
index 722941f..9d6b660 100644
--- 
a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
+++ 
b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/EscapeQuerySyntaxImpl.cs
@@ -274,7 +274,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
                 char curChar = input[i];
                 if (codePointMultiplier > 0)
                 {
-                    codePoint += HexToInt(curChar) * codePointMultiplier;
+                    codePoint += HexToInt32(curChar) * codePointMultiplier;
                     codePointMultiplier = (int)((uint)codePointMultiplier >> 
4);
                     if (codePointMultiplier == 0)
                     {
@@ -329,8 +329,10 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser
 
         /// <summary>
         /// Returns the numeric value of the hexadecimal character
+        /// <para/>
+        /// NOTE: This was hexToInt() in Lucene
         /// </summary>
-        private static int HexToInt(char c)
+        private static int HexToInt32(char c)
         {
             if ('0' <= c && c <= '9')
             {

Reply via email to