PyUnicodeUCS2_Decode

Create a Unicode object by decoding the encoded string s of the given size.

  1. PyObject* PyUnicodeUCS2_Decode(const(char)* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
    extern (C)
    PyUnicodeUCS2_Decode
    (
    const(char)* s
    ,,
    const(char)* encoding
    ,
    const(char)* errors
    )
  2. alias PyUnicode_Decode = PyUnicodeUCS2_Decode

Parameters

s const(char)*

encoded string

size Py_ssize_t

size of buffer

encoding const(char)*

encoding

errors const(char)*

error handling

Meta