Annotation of libwww/Library/src/HTString.html, revision 2.8
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
2.8 ! frystyk 6: <PRE>
! 7: #ifndef HTSTRING_H
2.1 timbl 8: #define HTSTRING_H
9:
10: #include "HTUtils.h"
11:
12: extern CONST char * HTLibraryVersion; /* String for help screen etc */
13:
2.6 timbl 14: </PRE>
15: <H2>Case-insensitive string comparison</H2>The usual routines (comp instead
16: of cmp) had some problem.
17: <PRE>extern int strcasecomp PARAMS((CONST char *a, CONST char *b));
2.1 timbl 18: extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n));
19:
2.6 timbl 20: </PRE>
2.7 luotonen 21:
22: <H2>Case-insensitive string inside another string</H2>
23: This works like <CODE>strstr()</CODE> but is not case-sensitive.
24: <PRE>
25: PUBLIC char * strcasestr PARAMS((char * s1,
26: char * s2));
27:
28: </PRE>
29:
30:
2.6 timbl 31: <H2>Malloced string manipulation</H2>
32: <PRE>#define StrAllocCopy(dest, src) HTSACopy (&(dest), src)
33: #define StrAllocCat(dest, src) HTSACat (&(dest), src)
2.1 timbl 34: extern char * HTSACopy PARAMS ((char **dest, CONST char *src));
35: extern char * HTSACat PARAMS ((char **dest, CONST char *src));
36:
2.6 timbl 37: </PRE>
38: <H2>Next word or quoted string</H2>
39: <PRE>extern char * HTNextField PARAMS ((char** pstr));
40:
2.1 timbl 41:
42: #endif
2.6 timbl 43: </PRE>end</A><P>
44: </BODY>
Webmaster