Encode a single Unicode code point into a UTF-8 byte sequence.
Declared in <folly/Unicode.h>
void
appendCodePointToUtf8(
char32_t cp,
std::string& out);
Result is undefined if `cp' is an invalid code point.
| Name | Description |
|---|---|
| cp | The code point to encode. |
| out | The string that the UTF-8 bytes are appended to. |