PyUnicodeUCS4_Translate

Translate a string by applying a character mapping table to it and return the resulting Unicode object.

The mapping table must map Unicode ordinal integers to Unicode ordinal integers or None (causing deletion of the character).

Mapping tables may be dictionaries or sequences. Unmapped character ordinals (ones which cause a LookupError) are left untouched and are copied as-is.

  1. PyObject* PyUnicodeUCS4_Translate(PyObject* str, PyObject* table, const(char)* errors)
    version(!Python_Unicode_UCS2)
    PyUnicodeUCS4_Translate
    ()
  2. alias PyUnicode_Translate = PyUnicodeUCS4_Translate

Meta