Returns the given ptr up to but not including the \0 as a char[].
char* version of wcharPtr. Basically it appends a \0 to the input. The function uses malloc for strings of lengths 1024 and above.
char* version of wcharPtr. Basically it appends a \0 to the input. The function uses malloc for strings of lengths 1024 and above.
This overload allocates the required memory from an existing stack buffer.
Converts a string to a wstring using a buffer provided by the user. To get the buffer requirements call wstringSize on your source buffer.
Calculates the required buffer size in bytes for a string to wchar[] conversion. Room for a terminating '\0' is included.
Replaces std.utf.toUTFz with a version that uses the stack as long as the required bytes for the output are <= 1k. Longer strings use malloc to create a buffer for the conversion. It is freed at least at the end of the scope.
Converts a wstring to a string using a buffer provided by the user. To get the buffer requirements call stringSize on your source buffer.
Calculates the required buffer size in bytes for a wstring to char[] conversion. Room for a terminating '\0' is included.
Converts between UTF-8 and UTF-16.