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)
    version(Python_3_3_Or_Later && Python_2_6_Or_Later)
    extern (C)
    PyUnicode_FromStringAndSize
    (
    const(char)* u
    ,)
  2. alias PyUnicode_FromStringAndSize = PyUnicodeUCS2_FromStringAndSize
  3. alias PyUnicode_FromStringAndSize = PyUnicodeUCS4_FromStringAndSize

Meta