[sword-cvs] sword/src/modules/filters greeklexattribs.cpp,1.12,1.13 utf8transliterator.cpp,1.25,1.26

sword@www.crosswire.org sword@www.crosswire.org
Wed, 26 Feb 2003 13:06:01 -0700


Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv15450

Modified Files:
	greeklexattribs.cpp utf8transliterator.cpp 
Log Message:
changed to swbuf


Index: greeklexattribs.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/greeklexattribs.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** greeklexattribs.cpp	1 Oct 2002 22:04:59 -0000	1.12
--- greeklexattribs.cpp	26 Feb 2003 20:05:59 -0000	1.13
***************
*** 20,27 ****
  
  
! char GreekLexAttribs::ProcessText(char *text, int maxlen, const SWKey *key, const SWModule *module) {
  
  	if (module->isProcessEntryAttributes()) {
! 		char *from;
  		bool inAV = false;
  		string phrase;
--- 20,27 ----
  
  
! char GreekLexAttribs::processText(SWBuf &text, const SWKey *key, const SWModule *module) {
  
  	if (module->isProcessEntryAttributes()) {
! 		const char *from;
  		bool inAV = false;
  		string phrase;
***************
*** 29,38 ****
  		char val[128], *valto;
  		char wordstr[7];
! 		char *currentPhrase = 0, *ch = 0;
! 		char *currentPhraseEnd = 0;
  		int number = 0;
  
  
! 		for (from = text; *from; from++) {
  			if (inAV) {
  				if (currentPhrase == 0) {
--- 29,38 ----
  		char val[128], *valto;
  		char wordstr[7];
! 		const char *currentPhrase = 0, *ch = 0;
! 		const char *currentPhraseEnd = 0;
  		int number = 0;
  
  
! 		for (from = text.c_str(); *from; from++) {
  			if (inAV) {
  				if (currentPhrase == 0) {

Index: utf8transliterator.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/utf8transliterator.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** utf8transliterator.cpp	1 Oct 2002 19:52:40 -0000	1.25
--- utf8transliterator.cpp	26 Feb 2003 20:05:59 -0000	1.26
***************
*** 320,324 ****
  }
  
! char UTF8Transliterator::ProcessText(char *text, int maxlen, const SWKey *key, const SWModule *module)
  {
  	if (option) {	// if we want transliteration
--- 320,324 ----
  }
  
! char UTF8Transliterator::processText(SWBuf &text, const SWKey *key, const SWModule *module)
  {
  	if (option) {	// if we want transliteration