Aspose::Cells::U16String::ToUtf8 method

U16String::ToUtf8(char*, int32_t) const method

Converts this to UTF8 string.

int32_t Aspose::Cells::U16String::ToUtf8(char *output, int32_t len) const
ParameterTypeDescription
outputchar*The output buffer. The output does not end with ‘\0’.
lenint32_tThe length of output buffer.

ReturnValue

The length of output buffer. If ToUtf8(nullptr, 0) is called, it returns the desired output buffer length.

See Also

U16String::ToUtf8() const method

Converts this to std::string in UTF8 format. The result does not end with ‘\0’.

std::string Aspose::Cells::U16String::ToUtf8() const

See Also