eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/dic dic_search.cpp


From: eliot-dev
Subject: [Eliot-dev] eliot/dic dic_search.cpp
Date: Sat, 19 Jan 2008 21:34:59 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      08/01/19 21:34:59

Modified files:
        dic            : dic_search.cpp 

Log message:
        Fixed the crossword search (the new dictionary is more sensitive).
        Anyway, this search is useless since the same can be done with a 
regexp...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/dic/dic_search.cpp?cvsroot=eliot&r1=1.2&r2=1.3

Patches:
Index: dic_search.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/dic/dic_search.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- dic_search.cpp      8 Jan 2008 13:52:34 -0000       1.2
+++ dic_search.cpp      19 Jan 2008 21:34:58 -0000      1.3
@@ -358,10 +358,16 @@
 {
     const DAWG_EDGE *current = getEdgeAt<DAWG_EDGE>(edgeptr->ptr);
 
-    if (params->mask[params->wordlen] == '\0' && edgeptr->term)
+    if (params->mask[params->wordlen] == '\0')
     {
+        if (edgeptr->term)
         oWordList.push_back(params->mask);
     }
+    else if (current->chr == 0)
+    {
+        // Do not go on recursion if we are on the sink
+        return;
+    }
     else if (params->mask[params->wordlen] == '.')
     {
         do




reply via email to

[Prev in Thread] Current Thread [Next in Thread]