diff options
Diffstat (limited to 'include/utilweb.h')
-rw-r--r-- | include/utilweb.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/utilweb.h b/include/utilweb.h new file mode 100644 index 0000000..e80fd7e --- /dev/null +++ b/include/utilweb.h @@ -0,0 +1,40 @@ +/****************************************************************************** + * utilxml.h - definition of class that deal with xml constructs + * + * $Id: utilweb.h,v 1.2 2003/06/27 01:41:07 scribe Exp $ + * + * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ + +#ifndef UTILWEB_H +#define UTILWEB_H + +#include <defs.h> +#include <swbuf.h> + +SWORD_NAMESPACE_START + +/** Encodes and URL +* Encodes a string into a valid URL, e.g. changes http://www.crosswire.org/test.jsp?force=1&help=1 into +* http://www.crosswire.org/test.jsp?force=1&help=1 +* This function works on the data of the buf parameter. +*/ +const SWBuf encodeURL( const SWBuf& buf ); + +SWORD_NAMESPACE_END + +#endif + |