NetSurf
encoding.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 Ole Loots <ole@monochrom.net>
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 NS_ATARI_ENCODING_H
20#define NS_ATARI_ENCODING_H
21
22#include <inttypes.h>
23#include <assert.h>
24#include <stdbool.h>
25
26#include "utils/utf8.h"
27
28extern struct gui_utf8_table *atari_utf8_table;
29
30nserror utf8_to_local_encoding(const char *string, size_t len, char **result);
31nserror utf8_from_local_encoding(const char *string, size_t len, char **result);
32
33int atari_to_ucs4( unsigned char atarichar);
34
35#endif
STATIC char result[100]
Definition: arexx.c:77
struct gui_utf8_table * atari_utf8_table
Definition: encoding.c:81
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
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
int atari_to_ucs4(unsigned char atarichar)
Definition: encoding.c:64
nserror
Enumeration of error codes.
Definition: errors.h:29
Netsurf additional integer type formatting macros.
User interface utf8 characterset conversion routines.
Definition: utf8.h:31
UTF-8 manipulation functions (interface).