Annotation of libwww/Library/src/HTString.html, revision 2.6

2.6     ! timbl       1: <HEADER>
        !             2: <TITLE>String handling for libwww</TITLE></HEADER>
        !             3: <BODY>
        !             4: <H1>Strings</H1>Case-independent string comparison
        !             5: and allocations with copies etc
        !             6: <PRE>#ifndef HTSTRING_H
2.1       timbl       7: #define HTSTRING_H
                      8: 
                      9: #include "HTUtils.h"
                     10: 
                     11: extern int WWW_TraceFlag;      /* Global flag for all W3 trace */
                     12: 
                     13: extern CONST char * HTLibraryVersion;  /* String for help screen etc */
                     14: 
2.6     ! timbl      15: </PRE>
        !            16: <H2>Case-insensitive string comparison</H2>The usual routines (comp instead
        !            17: of cmp) had some problem.
        !            18: <PRE>extern int strcasecomp  PARAMS((CONST char *a, CONST char *b));
2.1       timbl      19: extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n));
                     20: 
2.6     ! timbl      21: </PRE>
        !            22: <H2>Malloced string manipulation</H2>
        !            23: <PRE>#define StrAllocCopy(dest, src) HTSACopy (&amp;(dest), src)
        !            24: #define StrAllocCat(dest, src)  HTSACat  (&amp;(dest), src)
2.1       timbl      25: extern char * HTSACopy PARAMS ((char **dest, CONST char *src));
                     26: extern char * HTSACat  PARAMS ((char **dest, CONST char *src));
                     27: 
2.6     ! timbl      28: </PRE>
        !            29: <H2>Next word or quoted string</H2>
        !            30: <PRE>extern char * HTNextField PARAMS ((char** pstr));
        !            31: 
2.1       timbl      32: 
                     33: #endif
2.6     ! timbl      34: </PRE>end</A><P>
        !            35: </BODY>

Webmaster