Home | History | Annotate | Download | only in Objects

Lines Matching defs:replace

820                 PyObject *str = PyUnicode_DecodeUTF8(s, strlen(s), "replace");
3637 * -1=not initialized, 0=unknown, 1=strict, 2=replace, 3=ignore, 4=xmlcharrefreplace */
3677 else if (!strcmp(errors, "replace"))
3690 case 2: /* replace */
4690 else if (!strcmp(errors, "replace"))
4703 case 2: /* replace */
4784 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
5071 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
5123 else if (!strcmp(errors, "replace"))
5136 case 2: /* replace */
5230 * -1=not initialized, 0=unknown, 1=strict, 2=replace, 3=ignore, 4=xmlcharrefreplace */
5279 else if (!strcmp(errors, "replace"))
5292 case 2: /* replace */
5884 PyObject *replace(PyUnicodeObject *self,
5902 /* replace characters */
5949 /* replace strings */
5962 "replace string is too long");
5968 "replace string is too long");
6015 /* nothing to replace; return original string (when possible) */
6441 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and\n\
6479 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'\n\
7295 result = replace((PyUnicodeObject *)self,
7306 "S.replace(old, new[, count]) -> unicode\n\
7320 if (!PyArg_ParseTuple(args, "OO|n:replace", &str1, &str2, &maxcount))
7331 result = replace(self, str1, str2, maxcount);
7914 {"replace", (PyCFunction) unicode_replace, METH_VARARGS, replace__doc__},
8887 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.");