CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_str_conv.h
Go to the documentation of this file.
1
11
12#pragma once
13
14#include <cstddef>
15#include <string>
16
17namespace cdc::plugin_manager {
18
28std::string toDisplay(const char* utf8);
29
40int copyUtf8(const char* cp437, char* out, size_t out_size);
41
42} // namespace cdc::plugin_manager
std::string toDisplay(const char *utf8)
Decode a UTF-8 (with optional HTML entities) string into CP437 bytes.
int copyUtf8(const char *cp437, char *out, size_t out_size)
Encode a CP437 string into a caller buffer as UTF-8.