PyUnicode_EncodeUTF7

  1. PyObject* PyUnicode_EncodeUTF7(Py_UNICODE* data, Py_ssize_t length, int base64Set0, int base64WhiteSpace, const(char)* errors)
    version(Python_3_3_Or_Later && !Python_3_8_Or_Later)
    extern (C)
    PyUnicode_EncodeUTF7
  2. alias PyUnicode_EncodeUTF7 = PyUnicodeUCS2_EncodeUTF7
  3. alias PyUnicode_EncodeUTF7 = PyUnicodeUCS4_EncodeUTF7

Parameters

data Py_UNICODE*

Unicode char buffer

length Py_ssize_t

number of Py_UNICODE chars to encode

base64WhiteSpace int

Encode whitespace (sp, ht, nl, cr) in base64

errors const(char)*

error handling Availability: < 3.8

Meta