Lines Matching defs:replace
405 if (strcmp(errors, "replace") == 0) {
433 if (wcscmp(errors, L"replace") == 0) {
933 #include "stringlib/replace.h"
943 #include "stringlib/replace.h"
953 #include "stringlib/replace.h"
2777 unicode = PyUnicode_DecodeUTF8Stateful(str, length, "replace", NULL);
7710 if (errors != NULL && strcmp(errors, "replace") == 0)
9100 long replace = PyLong_AS_LONG(item);
9103 if (127 < replace) {
9108 translate[ch] = (Py_UCS1)replace;
9111 Py_UCS4 replace;
9120 replace = PyUnicode_READ_CHAR(item, 0);
9121 if (replace > 127)
9123 translate[ch] = (Py_UCS1)replace;
10605 replace(PyObject *self, PyObject *str1,
10649 /* replace characters */
10768 "replace string is too long");
10778 "replace string is too long");
10858 /* nothing to replace; return original string (when possible) */
11663 UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
12803 return replace(str, substr, replstr, maxcount);
12807 str.replace as unicode_replace
12812 Maximum number of occurrences to replace.
12813 -1 (the default value) means replace all occurrences.
12829 return replace(self, old, new, count);
16015 For example, replace "ANSI_X3.4-1968" (locale encoding) with "ascii"
16062 /* Set the filesystem encoding to mbcs/replace (PEP 529) */
16064 wchar_t *errors = _PyMem_RawWcsdup(L"replace");