Skip to content

MTY_MultiToWide

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Convert a UTF-8 string to its wide character equivalent.

bool MTY_MultiToWide(
    const char * src,
    wchar_t *    dst,
    uint32_t     len
);

Parameters

src (const char *)

Source UTF-8 string.

dst (wchar_t *)

Destination wide character string.

len (uint32_t)

Length in characters (not bytes) of dst.

Return value

bool

Returns true on success, false on failure. Call MTY_GetLog for details.

Even if a proper wide character conversion fails, this function attempts to fill dst with a best effort conversion.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Memory

Clone this wiki locally