-
Notifications
You must be signed in to change notification settings - Fork 56
MTY_WideToMulti
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Convert a wide character string to its UTF-8 equivalent.
bool MTY_WideToMulti(
const wchar_t * src,
char * dst,
size_t size
);
src
(const wchar_t *
)
Source wide character string.
dst
(char *
)
Destination UTF-8 string.
size
(size_t
)
Size in bytes of dst
.
bool
Returns true
on success, false
on failure. Call MTY_GetLog
for details.
Even if a proper UTF-8 conversion fails, this function attempts to fill dst
with a best effort conversion.