CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_api_strings.cpp File Reference

WAMR-facing wrappers around the plugin-boundary string codecs. More...

Go to the source code of this file.

Functions

int host_str_to_display (const char *in, char *out, size_t out_size, uint32_t target)
 Decode HTML entities + UTF-8 in in into single-byte display characters in out.
int host_str_to_utf8 (const char *in, char *out, size_t out_size)
 Convert CP437 display bytes in in to a UTF-8 string in out.

Detailed Description

WAMR-facing wrappers around the plugin-boundary string codecs.

Since the host API unified on UTF-8, the UI/canvas/display functions convert internally and plugins no longer need to pre-convert. These two functions remain for explicit use (e.g. targeting a Latin-1 GFX font).

Definition in file host_api_strings.cpp.