PyUnicode_AsUTF16String

Returns a Python string using the UTF-16 encoding in native byte order. The string always starts with a BOM mark.

  1. PyObject* PyUnicode_AsUTF16String(PyObject* unicode)
  2. alias PyUnicode_AsUTF16String = PyUnicodeUCS2_AsUTF16String
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_AsUTF16String = PyUnicodeUCS2_AsUTF16String
  3. alias PyUnicode_AsUTF16String = PyUnicodeUCS4_AsUTF16String

Meta