PyUnicodeUCS2_EncodeCharmap

  1. PyObject* PyUnicodeUCS2_EncodeCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* mapping, const(char)* errors)
    version(Python_Unicode_UCS2)
    PyUnicodeUCS2_EncodeCharmap
  2. alias PyUnicode_EncodeCharmap = PyUnicodeUCS2_EncodeCharmap

Parameters

data
Type: Py_UNICODE*

Unicode char buffer

length

Number of Py_UNICODE chars to encode

mapping
Type: PyObject*

character mapping (unicode ordinal -> char ordinal)

errors
Type: const(char)*

error handling

Meta