Converts a given array with a string of Unicode code points to the corresponding UTF-8 representation and returns the latter as a C++ string object. .
- Template Parameters
-
CharTraits | is a CharTraits object used to instantiate the std::basic_string template and create the output string. By default it resolves to. |
Allocator | is an Allocator object to instantiate the std::basic_string to produce the type of the resulting string. By default it resolves to. |
N | is a deducible size of pUcp . This size will not necessarily be equal to the length of the resulting string, unless pUcp is not zero-terminated. |
- Parameters
-
pUcp | is a statically defined array of Unicode 11.0 code points to convert to the corresponding UTF-8 representation. If the last byte of the array has zero value, it is truncated from the resulting string of Unicode code points. |
- Returns
- A newly created multi-byte
char
based C++ string object holding the UTF-8 representation of pUcp
.
- Exceptions
-