|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Internal UTF-8 <-> CP437 helpers for the plugin host API boundary. More...
#include <cstddef>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::plugin_manager |
Functions | |
| std::string | cdc::plugin_manager::toDisplay (const char *utf8) |
| Decode a UTF-8 (with optional HTML entities) string into CP437 bytes. | |
| int | cdc::plugin_manager::copyUtf8 (const char *cp437, char *out, size_t out_size) |
| Encode a CP437 string into a caller buffer as UTF-8. | |
Internal UTF-8 <-> CP437 helpers for the plugin host API boundary.
Plugins speak UTF-8 across the whole host API. The display pipeline (cdc_views, render::printText/drawText) is canonical CP437. plugin_manager is the single conversion boundary: inbound text is decoded to CP437 here, outbound text is re-encoded to UTF-8 here. These helpers are not exported to the WASM runtime.
Definition in file host_str_conv.h.