Annotation of libwww/Library/src/HTString.html, revision 2.7
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>
2.7 ! luotonen 22:
! 23: <H2>Case-insensitive string inside another string</H2>
! 24: This works like <CODE>strstr()</CODE> but is not case-sensitive.
! 25: <PRE>
! 26: PUBLIC char * strcasestr PARAMS((char * s1,
! 27: char * s2));
! 28:
! 29: </PRE>
! 30:
! 31:
2.6 timbl 32: <H2>Malloced string manipulation</H2>
33: <PRE>#define StrAllocCopy(dest, src) HTSACopy (&(dest), src)
34: #define StrAllocCat(dest, src) HTSACat (&(dest), src)
2.1 timbl 35: extern char * HTSACopy PARAMS ((char **dest, CONST char *src));
36: extern char * HTSACat PARAMS ((char **dest, CONST char *src));
37:
2.6 timbl 38: </PRE>
39: <H2>Next word or quoted string</H2>
40: <PRE>extern char * HTNextField PARAMS ((char** pstr));
41:
2.1 timbl 42:
43: #endif
2.6 timbl 44: </PRE>end</A><P>
45: </BODY>
Webmaster