Lines Matching defs:translate
9081 Py_UCS1 *translate)
9092 translate[ch] = 0xfe;
9096 translate[ch] = ch;
9105 skip the fast translate */
9108 translate[ch] = (Py_UCS1)replace;
9123 translate[ch] = (Py_UCS1)replace;
9165 int translate = unicode_fast_translate_lookup(mapping, ch,
9167 if (translate < 0)
9169 if (translate == 0)
9247 int translate;
9256 translate = charmaptranslate_output(ch, mapping, &writer);
9257 if (translate < 0)
9260 if (translate != 0) {
13421 Return a translation table usable for str.translate().
13508 PyErr_SetString(PyExc_ValueError, "string keys in translate "
13526 PyErr_SetString(PyExc_TypeError, "keys in translate table must "
13539 str.translate as unicode_translate