PyUnicodeUCS2_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* PyUnicodeUCS2_Translate(PyObject* str, PyObject* table, const(char)* errors)
    version(Python_Unicode_UCS2)
    PyUnicodeUCS2_Translate
    ()
  2. alias PyUnicode_Translate = PyUnicodeUCS2_Translate

Meta