diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-02-01 22:17:36 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-02-01 22:17:36 +0000 |
commit | 886a3106db6d6a60d2d706d2caad3e883dd70b14 (patch) | |
tree | 0fcd0fb9c8821f06d47e7e20e8c796e085e8aa2b /beos/gui.cpp | |
parent | 427f127fa9d42cdf9005d06813c580d18d5e0d6a (diff) | |
download | netsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.gz netsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.bz2 |
move utf8 local conversion operations to table
Diffstat (limited to 'beos/gui.cpp')
-rw-r--r-- | beos/gui.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp index 97117e04b..07bbc3eab 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -963,35 +963,6 @@ static void nsbeos_create_ssl_verify_window(struct browser_window *bw, CALLED(); } - -nserror utf8_to_local_encoding(const char *string, size_t len, char **result) -{ - assert(string && result); - - if (len == 0) - len = strlen(string); - - *result = strndup(string, len); - if (!(*result)) - return NSERROR_NOMEM; - - return NSERROR_OK; -} - -nserror utf8_from_local_encoding(const char *string, size_t len, char **result) -{ - assert(string && result); - - if (len == 0) - len = strlen(string); - - *result = strndup(string, len); - if (!(*result)) - return NSERROR_NOMEM; - - return NSERROR_OK; -} - static char *path_to_url(const char *path) { int urllen = strlen(path) + FILE_SCHEME_PREFIX_LEN + 1; |