I had been happily using JudySL for a text retrieval application and had
been using the stored keys as a list of words to search on. Now I need to do
case-insensitive searching.
Is there a simple way to make JSLF and JSLN match keys without respect to
case? I saw in JudySL.c the line where one could define which string
comparison function to use for determining order, but changing this from
strcmp to strcasecmp is not enough. I delved into the code a bit, but after
reviewing the third level of macro definitions, I gave up.
The main option that occurs to me is to store all keys in one case, do all
searches using a string forced to be in the same case, and store an encoding
of the case of the individual characters of the original key in the
structure pointed to JudySL..
Thought I'd inquire here before embarking on that.
-Al
--
Al Pacifico
Seattle, WA
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel