2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
2002-04-22 13:24:35 +04:00
|
|
|
*/
|
|
|
|
|
2003-02-09 15:58:15 +03:00
|
|
|
#ifndef _NETSURF_UTILS_UTILS_H_
|
|
|
|
#define _NETSURF_UTILS_UTILS_H_
|
2002-08-12 03:04:02 +04:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
2003-04-12 01:06:51 +04:00
|
|
|
#include "libxml/encoding.h"
|
2002-08-12 03:04:02 +04:00
|
|
|
|
2002-04-22 13:24:35 +04:00
|
|
|
void die(const char * const error);
|
|
|
|
char * strip(char * const s);
|
|
|
|
int whitespace(const char * str);
|
|
|
|
void * xcalloc(const size_t n, const size_t size);
|
|
|
|
void * xrealloc(void * p, const size_t size);
|
2003-01-08 02:15:23 +03:00
|
|
|
void xfree(void* p);
|
2002-04-22 13:24:35 +04:00
|
|
|
char * xstrdup(const char * const s);
|
|
|
|
char * load(const char * const path);
|
2002-05-22 01:27:29 +04:00
|
|
|
char * squash_whitespace(const char * s);
|
2003-04-12 01:06:51 +04:00
|
|
|
char * tolat1(xmlChar * s);
|
|
|
|
char *squash_tolat1(xmlChar *s);
|
2003-04-06 01:38:06 +04:00
|
|
|
char *url_join(const char* new, const char* base);
|
2002-05-22 01:27:29 +04:00
|
|
|
|
2002-08-12 03:04:02 +04:00
|
|
|
#endif
|