[sword-cvs] sword/src/utilfuns utilweb.cpp,1.1,1.2

sword@www.crosswire.org sword@www.crosswire.org
Tue, 3 Jun 2003 16:00:50 -0700


Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv1016

Modified Files:
	utilweb.cpp 
Log Message:
fixed map<string,string> stuff to work with VC++

Index: utilweb.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilweb.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** utilweb.cpp	1 Jun 2003 14:32:09 -0000	1.1
--- utilweb.cpp	3 Jun 2003 23:00:47 -0000	1.2
***************
*** 12,24 ****
  
  typedef pair<string,string> DataPair;
  
  const std::string encodeURL( const std::string& url ) {
  	string buf( url );
  
!         map<string, string> m;
  	m[" "] = "+";
  	m[":"] = "%3A";
  
! 	for (map<string,string>::iterator it = m.begin(); it != m.end(); ++it) {
  		string search =  it->first;
  		string replace = it->second;
--- 12,27 ----
  
  typedef pair<string,string> DataPair;
+ typedef map<string,string> DataMap;
  
  const std::string encodeURL( const std::string& url ) {
  	string buf( url );
  
!     DataMap m;
  	m[" "] = "+";
  	m[":"] = "%3A";
  
! 	DataMap::iterator it;
! 
! 	for (it = m.begin(); it != m.end(); ++it) {
  		string search =  it->first;
  		string replace = it->second;