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

Implementation of the plugin-boundary UTF-8 <-> CP437 helpers. More...

#include "host_str_conv.h"
#include "plugin_manager/host_api.h"
#include "cdc_views/RenderHelpers.h"
#include "cdc_core/Cp437.h"
#include <cstring>

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.

Detailed Description

Implementation of the plugin-boundary UTF-8 <-> CP437 helpers.

Definition in file host_str_conv.cpp.