NetSurf
Functions | Variables
encoding.h File Reference
#include <inttypes.h>
#include <assert.h>
#include <stdbool.h>
#include "utils/utf8.h"
Include dependency graph for encoding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror utf8_to_local_encoding (const char *string, size_t len, char **result)
 Convert a UTF-8 encoded string into the system local encoding. More...
 
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. More...
 
int atari_to_ucs4 (unsigned char atarichar)
 

Variables

struct gui_utf8_tableatari_utf8_table
 

Function Documentation

◆ atari_to_ucs4()

int atari_to_ucs4 ( unsigned char  atarichar)

Definition at line 64 of file encoding.c.

References Atari_to_Unicode, and BEG_Atari_to_Unicode.

Referenced by nkc_to_input_key().

Here is the caller graph for this function:

◆ utf8_from_local_encoding()

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.

Parameters
stringThe string to convert
lenThe length (in bytes) of the string, or 0
resultPointer to location in which to store result
Returns
An nserror code

Definition at line 80 of file utf8.c.

◆ utf8_to_local_encoding()

nserror utf8_to_local_encoding ( const char *  string,
size_t  len,
char **  result 
)

Convert a UTF-8 encoded string into the system local encoding.

Parameters
stringThe string to convert
lenThe length (in bytes) of the string, or 0
resultPointer to location in which to store result
Returns
An nserror code

Definition at line 89 of file utf8.c.

Variable Documentation

◆ atari_utf8_table

struct gui_utf8_table* atari_utf8_table
extern

Definition at line 81 of file encoding.c.

Referenced by main().