lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 opened a new pull request #316: Fix for NGram TestUTF8FullRange() tests (See #269)
Date Wed, 22 Jul 2020 11:47:01 GMT

NightOwl888 opened a new pull request #316:
URL: https://github.com/apache/lucenenet/pull/316


   The problem was that the code point was being cast to a `char` before calling the `IndexOf`
method, which means that it didn't support surrogate pairs. In rare instances where the cast
turned the code point into a valid token character the test failed.
   
   .NET doesn't have a built-in overload of `String.IndexOf()` that accepts a code point,
that is an extension method in J2N.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message