|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
WAMR-facing wrappers around the plugin-boundary string codecs. More...
#include "plugin_manager/host_api.h"#include "cdc_views/RenderHelpers.h"#include "host_str_conv.h"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. | |
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.