NetSurf
Data Fields
gui_utf8_table Struct Reference

User interface utf8 characterset conversion routines. More...

#include <utf8.h>

Data Fields

nserror(* utf8_to_local )(const char *string, size_t len, char **result)
 Convert a UTF-8 encoded string into the system local encoding. More...
 
nserror(* local_to_utf8 )(const char *string, size_t len, char **result)
 Convert a string encoded in the system local encoding to UTF-8. More...
 

Detailed Description

User interface utf8 characterset conversion routines.

Definition at line 31 of file utf8.h.

Field Documentation

◆ local_to_utf8

nserror(* gui_utf8_table::local_to_utf8) (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 50 of file utf8.h.

Referenced by html__set_file_gadget_filename(), html_drop_file_at_point(), and verify_utf8_register().

◆ utf8_to_local

nserror(* gui_utf8_table::utf8_to_local) (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 40 of file utf8.h.

Referenced by save_as_text(), utf8_save_text(), and verify_utf8_register().


The documentation for this struct was generated from the following file: