folly::codePointToUtf8

Encodes a single Unicode code point as a UTF-8 string.

Synopsis

Declared in <folly/Unicode.h>

std::string
codePointToUtf8(char32_t cp);

Return Value

The UTF-8 encoding of the code point.

Parameters

NameDescription
cpThe code point to encode.