[sword-cvs] sword/src/modules/lexdict/rawld rawld.cpp,1.25,1.26
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 25 Feb 2003 20:23:46 -0700
Update of /usr/local/cvsroot/sword/src/modules/lexdict/rawld
In directory www:/tmp/cvs-serv30129/src/modules/lexdict/rawld
Modified Files:
rawld.cpp
Log Message:
no message
Index: rawld.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/lexdict/rawld/rawld.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** rawld.cpp 7 Oct 2002 00:14:44 -0000 1.25
--- rawld.cpp 26 Feb 2003 03:23:44 -0000 1.26
***************
*** 90,97 ****
strongsPad(buf);
! if (!(retval = findoffset(buf, &start, &size, away))) {
! readtext(start, &size, &idxbuf, &entrybuf);
! rawFilter(entrybuf, size, 0); // hack, decipher
! rawFilter(entrybuf, size*FILTERPAD, key);
entrySize = size; // support getEntrySize call
if (!key->Persist()) // If we have our own key
--- 90,97 ----
strongsPad(buf);
! if (!(retval = findOffset(buf, &start, &size, away))) {
! readText(start, &size, &idxbuf, entryBuf);
! rawFilter(entryBuf, 0); // hack, decipher
! rawFilter(entryBuf, key);
entrySize = size; // support getEntrySize call
if (!key->Persist()) // If we have our own key
***************
*** 102,109 ****
}
else {
! if (entrybuf)
! delete [] entrybuf;
! entrybuf = new char [ 5 ];
! *entrybuf = 0;
}
--- 102,106 ----
}
else {
! entryBuf = "";
}
***************
*** 120,133 ****
*/
! char *RawLD::getRawEntry() {
char ret = getEntry();
if (!ret) {
if (!isUnicode())
! preptext(entrybuf);
}
else error = ret;
! return entrybuf;
}
--- 117,130 ----
*/
! SWBuf &RawLD::getRawEntryBuf() {
char ret = getEntry();
if (!ret) {
if (!isUnicode())
! prepText(entryBuf);
}
else error = ret;
! return entryBuf;
}
***************
*** 157,166 ****
void RawLD::setEntry(const char *inbuf, long len) {
! settext(*key, inbuf, len);
}
void RawLD::linkEntry(const SWKey *inkey) {
! linkentry(*key, *inkey);
}
--- 154,163 ----
void RawLD::setEntry(const char *inbuf, long len) {
! doSetText(*key, inbuf, len);
}
void RawLD::linkEntry(const SWKey *inkey) {
! doLinkEntry(*key, *inkey);
}
***************
*** 173,177 ****
void RawLD::deleteEntry() {
! settext(*key, "");
}
--- 170,174 ----
void RawLD::deleteEntry() {
! doSetText(*key, "");
}