_PyUnicodeUCS2_AsDefaultEncodedString

Return a Python string holding the default encoded value of the Unicode object.

The resulting string is cached in the Unicode object for subsequent usage by this function. The cached version is needed to implement the character buffer interface and will live (at least) as long as the Unicode object itself.

The refcount of the string is *not* incremented.

_*** Exported for internal use by the interpreter only !!! ***

  1. PyObject* _PyUnicodeUCS2_AsDefaultEncodedString(PyObject*, const(char)*)
    version(Python_Unicode_UCS2)
    _PyUnicodeUCS2_AsDefaultEncodedString
    (
    ,
    const(char)*
    )
  2. alias _PyUnicode_AsDefaultEncodedString = _PyUnicodeUCS2_AsDefaultEncodedString

Meta