[sword-cvs] sword/src/utilfuns utilweb.cpp,NONE,1.1 Makefile.am,1.7,1.8
sword@www.crosswire.org
sword@www.crosswire.org
Sun, 1 Jun 2003 07:32:16 -0700
- Previous message: [sword-cvs] sword/src/modules/filters gbfwebif.cpp,NONE,1.1 thmlwebif.cpp,NONE,1.1 Makefile.am,1.17,1.18
- Next message: [sword-cvs] sword/include gbfwebif.h,NONE,1.1 thmlwebif.h,NONE,1.1 utilweb.h,NONE,1.1 Makefile.am,1.19,1.20 defs.h,1.9,1.10 swmodule.h,1.63,1.64 utilfuns.h,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv1646/src/utilfuns
Modified Files:
Makefile.am
Added Files:
utilweb.cpp
Log Message:
added webif stuff, updated makefile.am files
--- NEW FILE: utilweb.cpp ---
#include <utilxml.h>
#include <ctype.h>
#include <string>
#include <map>
SWORD_NAMESPACE_START
using std::string;
using std::map;
using std::pair;
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;
while (true) {
string::size_type idx = buf.find(search);
if (idx == string::npos)
break;
buf.replace(idx, search.length(), replace);
}
}
return buf;
}
SWORD_NAMESPACE_END
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Makefile.am 30 May 2003 19:22:32 -0000 1.7
--- Makefile.am 1 Jun 2003 14:32:09 -0000 1.8
***************
*** 3,6 ****
--- 3,7 ----
libsword_la_SOURCES += $(utilfunsdir)/Greek2Greek.cpp
libsword_la_SOURCES += $(utilfunsdir)/utilstr.cpp
+ libsword_la_SOURCES += $(utilfunsdir)/utilweb.cpp
libsword_la_SOURCES += $(utilfunsdir)/utilxml.cpp
libsword_la_SOURCES += $(utilfunsdir)/unixstr.cpp
- Previous message: [sword-cvs] sword/src/modules/filters gbfwebif.cpp,NONE,1.1 thmlwebif.cpp,NONE,1.1 Makefile.am,1.17,1.18
- Next message: [sword-cvs] sword/include gbfwebif.h,NONE,1.1 thmlwebif.h,NONE,1.1 utilweb.h,NONE,1.1 Makefile.am,1.19,1.20 defs.h,1.9,1.10 swmodule.h,1.63,1.64 utilfuns.h,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]