[sword-cvs] sword/tests webiftest.cpp,1.1,1.2

sword@www.crosswire.org sword@www.crosswire.org
Fri, 6 Jun 2003 11:25:58 -0700


Update of /usr/local/cvsroot/sword/tests
In directory www:/tmp/cvs-serv10529/tests

Modified Files:
	webiftest.cpp 
Log Message:
filter fixes, encodeURL fixes

Index: webiftest.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/tests/webiftest.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** webiftest.cpp	1 Jun 2003 14:32:09 -0000	1.1
--- webiftest.cpp	6 Jun 2003 18:25:56 -0000	1.2
***************
*** 30,42 ****
  	mgr.setGlobalOption("Morphological Tags", "on");
  
! 	SWModule *module = mgr.Modules["KJV"];
  	if (!module) {
  		module = mgr.Modules.begin()->second;
  	}
  
  	module->setKey("John");
  	std::cout << module->RenderText() << std::endl;
  
!     	return 0;
  }
  
--- 30,54 ----
  	mgr.setGlobalOption("Morphological Tags", "on");
  
! 	SWModule *module = mgr.Modules["TSK"];
  	if (!module) {
  		module = mgr.Modules.begin()->second;
  	}
+ 	module->setKey("John");
+ 	std::cout << module->RenderText() << std::endl<< std::endl<< std::endl;
+ 
+ 	//------------------------
+ 
+ 	SWMgr mgr2(0, 0, true, new MarkupFilterMgr(FMT_HTML, ENC_UTF8));
+ 	mgr2.setGlobalOption("Strong's Numbers", "on");
+ 	mgr2.setGlobalOption("Morphological Tags", "on");
+ 	module = mgr2.Modules["TSK"];
+ 	if (!module) {
+ 		module = mgr2.Modules.begin()->second;
+ 	}
  
  	module->setKey("John");
  	std::cout << module->RenderText() << std::endl;
  
! 	return 0;
  }