File:  [Public] / libwww / Library / src / HTWSRC.html
Revision 2.7: download - view: text, annotated - select for diffs
Tue Mar 21 17:47:13 1995 UTC (29 years, 2 months ago) by frystyk
Branches: MAIN
CVS tags: v3/0, WindowsNT, HEAD
Getting Library back on main branch

<HTML>
<HEAD>
<TITLE>A parser for WAIS source files</TITLE>
</HEAD>
<BODY>

<H1>WAIS Source file parser</H1>

<PRE>
/*
**	(c) COPYRIGHT CERN 1994.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This converter returns a <A
HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Stream.html">stream
object</A> into which a <A
HREF="http://info.cern.ch/hypertext/Products/WAIS/Overview.html">WAIS</A>
source file can be written.  The result is put via a <A
HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Stream">structured
stream</A> into whatever format was required for the output stream.<P>
See also: <A NAME="z4" HREF="HTWAIS.html">HTWAIS</A> protocol
interface module.<P>

This module is implemented by <A HREF="HTWSRC.c">HTWSRC.c</A>, and it is
a part of the <A
HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">
Library of Common Code</A>.

<PRE>
#ifndef HTWSRC_H
#define HTWSRC_H

#include "HTFormat.h"

#ifndef pyramid
extern  HTConverter HTWSRCConvert;
#endif

</PRE>
<H2>Escaping Strings</H2>HTDeSlash takes out the invlaid characters
in a URL path ELEMENT by converting
them into hex-escaped characters.
HTEnSlash does the reverse.<P>
Each returns a pointer to a newly
allocated string which must eventually
be freed by the caller.
<PRE>extern char * HTDeSlash PARAMS((CONST char * str));

extern char * HTEnSlash PARAMS((CONST char * str));

#endif

</PRE>
<ADDRESS><A
NAME="0" HREF="http://info.cern.ch./hypertext/TBL_Disclaimer.html">Tim BL</A></A>
</ADDRESS></BODY>
</HTML>

Webmaster