NetSurf
Functions | Variables
utf8.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * ami_utf8_easy (const char *string)
 
void ami_utf8_free (char *ptr)
 
char * ami_to_utf8_easy (const char *string)
 
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...
 
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...
 

Variables

struct gui_utf8_tableami_utf8_table
 

Function Documentation

◆ ami_to_utf8_easy()

char * ami_to_utf8_easy ( const char *  string)

Definition at line 119 of file utf8.c.

References NSERROR_OK, and utf8_from_local_encoding().

Referenced by ami_gui_event(), and ami_gui_opts_use().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_utf8_easy()

char * ami_utf8_easy ( const char *  string)

Definition at line 109 of file utf8.c.

References NSERROR_OK, and utf8_to_local_encoding().

Referenced by ami_cookies_present(), ami_drag_selection(), ami_font_scan_gui_open(), ami_gui_opts_open(), ami_gui_opts_setup(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), ami_menu_alloc_item(), ami_pageinfo_open(), ami_print_ui_setup(), ami_quit_netsurf_delayed(), ami_search_open(), amiga_warn_user(), amiga_warn_user_multi(), gui_download_window_create(), gui_window_create(), gui_window_set_status(), gui_window_set_title(), gui_window_set_url(), HOOKF(), and translate_escape_chars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_utf8_free()

void ami_utf8_free ( char *  ptr)

◆ 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

◆ ami_utf8_table

struct gui_utf8_table* ami_utf8_table
extern