path: root/utils/utils.h
diff options
authorJohn Mark Bell <>2005-04-16 05:09:33 +0000
committerJohn Mark Bell <>2005-04-16 05:09:33 +0000
commitc17dc661eae89cea66959fad4fe48d77f1faf174 (patch)
tree1909b4157137e66b3f74adc75ca1a2bbf3bc3c6f /utils/utils.h
parent37a4119ab80b1a7c7e37707c4e029218bdcbe549 (diff)
[project @ 2005-04-16 05:09:32 by jmb]
Split out UTF-8 handling functions. Submit URL-encoded forms in sensible encoding: * First entry in accept-charset list, if present * Document encoding, otherwise We may want to explicitly look for UTF-8, to save converting. Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc). Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS) svn path=/import/netsurf/; revision=1647
Diffstat (limited to 'utils/utils.h')
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/utils.h b/utils/utils.h
index 6dcfa1305..278446e0c 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -20,20 +20,22 @@
#define NOF_ELEMENTS(array) (sizeof(array)/sizeof(*(array)))
-void die(const char * const error);
char * strip(char * const s);
int whitespace(const char * str);
char * squash_whitespace(const char * s);
char *cnv_space2nbsp(const char *s);
char *cnv_local_enc_str(const char *s, size_t length);
char *cnv_str_local_enc(const char *s);
-char *cnv_strn_local_enc(const char *s, int length,
- const ptrdiff_t **back_mapPP);
+char *cnv_strn_local_enc(const char *s, int length);
bool is_dir(const char *path);
void regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
void clean_cookiejar(void);
void unicode_transliterate(unsigned int c, char **r);
char *human_friendly_bytesize(unsigned long bytesize);
+/* Platform specific functions */
+void die(const char * const error);
void warn_user(const char *warning, const char *detail);
+const char *local_encoding_name(void);