Hi,

       I finally created the htword library. Moved the Word* files
into it + HtWordType that is renamed WordType. 

       I've also changed WordList that now depends on db_cxx.h instead
of Database.h. I confess I got tired to enhance the Database.h + DB2_db.h
interface. Since WordList is and will remain tightly bound to Berkeley DB,
depending directly on db_cxx is not the poor design decision it may seem to
be. 
       I added a local cursor to the Walk function so that two Walk can
occur at the same time. The reason why this is necessary will appear when
we try to resolve queries without loading all the word occurences in memory.
The other advantage to access db_cxx directly is performance.

       I could not resist adding the set and trunc methods in String.

trunc() { Length = 0; }

set(const char* s, int l) { trunc(); append(s, l); }

       I was not courageous enough to patch all the places in the
code that show
       s = 0;
       s.append(s, l);

       to

       s.set(s, l);

       Cheers,

-- 
                Loic Dachary

                ECILA
                100 av. du Gal Leclerc
                93500 Pantin - France
                Tel: 33 1 56 96 09 80, Fax: 33 1 56 96 09 61
                e-mail: [EMAIL PROTECTED] URL: http://www.senga.org/


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to