lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [3/6] lucenenet git commit: decimal values were appended when intention was to append chars
Date Sat, 07 Mar 2015 17:29:20 GMT
decimal values were appended when intention was to append chars


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

Branch: refs/heads/master
Commit: 925c280bb1e095110c1cbc06b0d151460f1abf31
Parents: aea4304
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat Mar 7 07:21:09 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat Mar 7 07:21:09 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/925c280b/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 0cc046b..38e7582 100644
--- a/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
+++ b/src/Lucene.Net.Core/Util/Automaton/RegExp.cs
@@ -691,11 +691,11 @@ namespace Lucene.Net.Util.Automaton
                     break;
 
                 case Kind.REGEXP_CHAR:
-                    b.Append("\\").Append(c);
+                    b.Append("\\").Append(Character.ToChars(c));
                     break;
 
                 case Kind.REGEXP_CHAR_RANGE:
-                    b.Append("[\\").Append(From).Append("-\\").Append(To).Append("]");
+                    b.Append("[\\").Append(Character.ToChars(From)).Append("-\\").Append(Character.ToChars(To)).Append("]");
                     break;
 
                 case Kind.REGEXP_ANYCHAR:
@@ -828,7 +828,7 @@ namespace Lucene.Net.Util.Automaton
             }
             else
             {
-                b.Append(exp1.c);
+                b.Append(Character.ToChars(exp1.c));
             }
             if (exp2.kind == Kind.REGEXP_STRING)
             {
@@ -836,7 +836,7 @@ namespace Lucene.Net.Util.Automaton
             }
             else
             {
-                b.Append(exp2.c);
+                b.Append(Character.ToChars(exp2.c));
             }
             return MakeString(b.ToString());
         }


Mime
View raw message