PyUnicode_FromStringAndSize

Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes Availability: >= 2.6

  1. PyObject* PyUnicode_FromStringAndSize(const(char)* u, Py_ssize_t size)
  2. alias PyUnicode_FromStringAndSize = PyUnicodeUCS2_FromStringAndSize
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2 && Python_2_6_Or_Later)
    extern (C)
    alias PyUnicode_FromStringAndSize = PyUnicodeUCS2_FromStringAndSize
  3. alias PyUnicode_FromStringAndSize = PyUnicodeUCS4_FromStringAndSize

Meta