NetSurf
utf8.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef AMIGA_UTF8_H
20#define AMIGA_UTF8_H
21
22extern struct gui_utf8_table *ami_utf8_table;
23
24char *ami_utf8_easy(const char *string);
25void ami_utf8_free(char *ptr);
26char *ami_to_utf8_easy(const char *string);
27
28nserror utf8_from_local_encoding(const char *string, size_t len, char **result);
29nserror utf8_to_local_encoding(const char *string, size_t len, char **result);
30
31#endif
STATIC char result[100]
Definition: arexx.c:77
nserror
Enumeration of error codes.
Definition: errors.h:29
void ami_utf8_free(char *ptr)
Definition: utf8.c:104
nserror utf8_to_local_encoding(const char *string, size_t len, char **result)
Convert a UTF-8 encoded string into the system local encoding.
Definition: utf8.c:89
struct gui_utf8_table * ami_utf8_table
char * ami_to_utf8_easy(const char *string)
Definition: utf8.c:119
char * ami_utf8_easy(const char *string)
Definition: utf8.c:109
nserror utf8_from_local_encoding(const char *string, size_t len, char **result)
Convert a string encoded in the system local encoding to UTF-8.
Definition: utf8.c:80
User interface utf8 characterset conversion routines.
Definition: utf8.h:31