lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject svn commit: r1353679 - /incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs
Date Mon, 25 Jun 2012 17:38:42 GMT
Author: sisve
Date: Mon Jun 25 17:38:41 2012
New Revision: 1353679

URL: http://svn.apache.org/viewvc?rev=1353679&view=rev
Log:
LUCENENET-493 culture sensitivity

Modified:
    incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs

Modified: incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs?rev=1353679&r1=1353678&r2=1353679&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Analyzers/Payloads/FloatEncoder.cs Mon Jun 25 17:38:41
2012
@@ -16,6 +16,7 @@
  */
 
 using Lucene.Net.Index;
+using Single = Lucene.Net.Support.Single;
 
 namespace Lucene.Net.Analysis.Payloads
 {
@@ -28,7 +29,7 @@ namespace Lucene.Net.Analysis.Payloads
         public override Payload Encode(char[] buffer, int offset, int length)
         {
             Payload result = new Payload();
-            float payload = float.Parse(new string(buffer, offset, length)); // TODO: improve
this so that we don't have to new Strings
+            float payload = Single.Parse(new string(buffer, offset, length)); // TODO: improve
this so that we don't have to new Strings
             byte[] bytes = PayloadHelper.EncodeFloat(payload);
             result.SetData(bytes);
             return result;



Mime
View raw message