Function

GLib-2.0GLibucs4_to_utf16

  • Convert a string from UCS-4 to UTF-16.

    A nul character (U+0000) will be added to the result after the converted text.

    Parameters

    • str: string

      a UCS-4 encoded string

    Returns [number, number, number]

    a pointer to a newly allocated UTF-16 string. This value must be freed with GLib.free.