Encodes a single Unicode code point into a UTF‐8 byte sequence.

Synopsis

Declared in <folly/Unicode.h>

unicode_code_point_utf8
unicode_code_point_to_utf8(char32_t cp);

Return Value

The UTF‐8 encoding of the code point.

Parameters

Name

Description

cp

The code point to encode.

Created with MrDocs