summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-06-07 21:29:26 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-06-07 21:29:26 +0000
commit0bcfdbeb50b2435b848ea1fd50ccc79ba64fd129 (patch)
treeb24749b82e3e4f840f7ecfd7f2fcdfc5bd26a291 /utils/utils.c
parentbe6a75509d4abdd1ddc9742780e1a80e33f53917 (diff)
downloadnetsurf-0bcfdbeb50b2435b848ea1fd50ccc79ba64fd129.tar.gz
netsurf-0bcfdbeb50b2435b848ea1fd50ccc79ba64fd129.tar.bz2
[project @ 2005-06-07 21:29:26 by jmb]
Lose cnv_str_local_enc and friends. UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate. svn path=/import/netsurf/; revision=1744
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 03145df2d..0632b2318 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -104,40 +104,6 @@ char *cnv_space2nbsp(const char *s)
}
/**
- * Convert local encoding to NUL terminated UTF-8 string.
- * Caller needs to free return value.
- *
- * \param s string in local machine encoding. NUL or length terminated (which comes first).
- * \param length maximum number of bytes to consider at s.
- * \return malloc()'ed NUL termined string in UTF-8 encoding.
- */
-char *cnv_local_enc_str(const char *s, size_t length)
-{
- return utf8_from_enc(s, local_encoding_name(), length);
-}
-
-
-/**
- * Converts NUL terminated UTF-8 string <s> to the machine local encoding.
- * Caller needs to free return value.
- */
-char *cnv_str_local_enc(const char *s)
-{
- return cnv_strn_local_enc(s, 0);
-}
-
-
-/**
- * Converts UTF-8 string <s> of <length> bytes to the machine local encoding.
- * Caller needs to free return value.
- */
-char *cnv_strn_local_enc(const char *s, int length)
-{
- return utf8_to_enc(s, local_encoding_name(), length);
-}
-
-
-/**
* Check if a directory exists.
*/