core :: UCharString :: to_cstring
self
to a CString
and returns the required length (without the termination character) of said CString
# Converts `self` to a `CString` and returns the required length (without the termination character) of said `CString`
fun to_cstring(dest: CString, dest_length: Int, source_length: Int): Int `{
UErrorCode error = U_ZERO_ERROR;
int32_t res;
u_strToUTF8(dest, dest_length, &res, self, source_length, &error);
return res;
`}
lib/core/text/u16_string.nit:173,2--179,3