Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

Utf16ToUtf8.hpp

11 lines285 Bytes

1#pragma once
2​
3#include <cstddef>
4#include <string>
5​
6namespace margelo::nitro::t3highlights {
7​
8/** Lone surrogates become U+FFFD, as with `jsi::String::utf8`. */
9void appendUtf16AsUtf8(std::string& out, const char16_t* data, size_t length);
10​
11} // namespace margelo::nitro::t3highlights