core :: UCharString :: from_cstring
CString
to a UCharString
and returns the required length of said UCharString
# Converts a `CString` to a `UCharString` and returns the required length of said `UCharString`
fun from_cstring(dest_length: Int, source: CString, source_length: Int): Int `{
UErrorCode error = U_ZERO_ERROR;
int32_t res;
u_strFromUTF8(self, dest_length, &res, source, source_length, &error);
return res;
`}
lib/core/text/u16_string.nit:165,2--171,3