diff options
Diffstat (limited to 'WWW/Library/Implementation/HTString.h')
-rw-r--r-- | WWW/Library/Implementation/HTString.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/HTString.h b/WWW/Library/Implementation/HTString.h new file mode 100644 index 00000000..7fad84bb --- /dev/null +++ b/WWW/Library/Implementation/HTString.h @@ -0,0 +1,51 @@ +/* String handling for libwww + STRINGS + + Case-independent string comparison and allocations with copies etc + + */ +#ifndef HTSTRING_H +#define HTSTRING_H + +#ifndef HTUTILS_H +#include "HTUtils.h" +#endif /* HTUTILS_H */ + +extern int WWW_TraceFlag; /* Global flag for all W3 trace */ + +extern CONST char * HTLibraryVersion; /* String for help screen etc */ + +/* + +Case-insensitive string comparison + + The usual routines (comp instead of cmp) had some problem. + + */ +extern int strcasecomp PARAMS((CONST char *a, CONST char *b)); +extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n)); + +/* + +Malloced string manipulation + + */ +#define StrAllocCopy(dest, src) HTSACopy (&(dest), src) +#define StrAllocCat(dest, src) HTSACat (&(dest), src) +extern char * HTSACopy PARAMS ((char **dest, CONST char *src)); +extern char * HTSACat PARAMS ((char **dest, CONST char *src)); + +/* + +Next word or quoted string + + */ +extern char * HTNextField PARAMS ((char** pstr)); + + +#endif +/* + + end + + */ |