Lines Matching defs:replace
325 if (strcmp(errors, "replace") == 0) {
791 #include "stringlib/replace.h"
802 #include "stringlib/replace.h"
813 #include "stringlib/replace.h"
2563 unicode = PyUnicode_DecodeUTF8Stateful(str, length, "replace", NULL);
7396 if (errors != NULL && strcmp(errors, "replace") == 0)
8828 long replace = PyLong_AS_LONG(item);
8831 if (127 < replace) {
8836 translate[ch] = (Py_UCS1)replace;
8839 Py_UCS4 replace;
8848 replace = PyUnicode_READ_CHAR(item, 0);
8849 if (replace > 127)
8851 translate[ch] = (Py_UCS1)replace;
10488 replace(PyObject *self, PyObject *str1,
10529 /* replace characters */
10640 "replace string is too long");
10653 "replace string is too long");
10730 /* nothing to replace; return original string (when possible) */
11512 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and\n\
12538 return replace(str, substr, replstr, maxcount);
12542 "S.replace(old, new[, count]) -> str\n\
12555 if (!PyArg_ParseTuple(args, "UU|n:replace", &str1, &str2, &maxcount))
12559 return replace(self, str1, str2, maxcount);
13816 {"replace", (PyCFunction) unicode_replace, METH_VARARGS, replace__doc__},