Searched defs:replace (Results 1 - 18 of 18) sorted by last modified time

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
H A Dpydoc.py108 def replace(text, *pairs): function
383 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
398 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
475 return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
544 url = escape(all).replace('"', '&quot;')
963 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
1750 request = strip(replace(request, '"', '', "'", ''))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
H A Dencoder.py37 def replace(match): function in function:encode_basestring
39 return '"' + ESCAPE.sub(replace, s) + '"'
48 def replace(match): function in function:py_encode_basestring_ascii
64 return '"' + str(ESCAPE_ASCII.sub(replace, s)) + '"'
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dstring.py513 def replace(s, old, new, maxreplace=-1): function
514 """replace (str, old, new[, maxreplace]) -> string
521 return s.replace(old, new, maxreplace)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
H A Dbytearrayobject.c1584 "replace string is too long");
1590 "replace string is too long");
1838 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1843 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1860 /* replace with the 'to' */
1908 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1913 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1932 /* replace with the 'to' */
1953 replace(PyByteArrayObject *self, function
1975 /* >>> "Python".replace("", "
[all...]
H A Dstringobject.c718 if (strcmp(errors, "replace") == 0) {
2376 "replace string is too long");
2382 "replace string is too long");
2629 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2634 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2651 /* replace with the 'to' */
2698 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2703 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2722 /* replace with the 'to' */
2743 replace(PyStringObjec function
[all...]
H A Dunicodeobject.c821 PyObject *str = PyUnicode_DecodeUTF8(s, strlen(s), "replace");
3630 * -1=not initialized, 0=unknown, 1=strict, 2=replace, 3=ignore, 4=xmlcharrefreplace */
3670 else if (!strcmp(errors, "replace"))
3683 case 2: /* replace */
4683 else if (!strcmp(errors, "replace"))
4696 case 2: /* replace */
4777 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
5064 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
5116 else if (!strcmp(errors, "replace"))
5129 case 2: /* replace */
5877 PyObject *replace(PyUnicodeObject *self, function
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/
H A Dpydoc.py123 def replace(text, *pairs): function
428 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
443 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
521 return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
590 url = escape(all).replace('"', '&quot;')
1026 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
1830 request = strip(replace(request, '"', '', "'", ''))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A DUserString.py107 def replace(self, old, new, maxsplit=-1): member in class:UserString
108 return self.__class__(self.data.replace(old, new, maxsplit))
H A Dpydoc.py108 def replace(text, *pairs): function
383 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
398 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
475 return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
544 url = escape(all).replace('"', '&quot;')
963 if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
1746 request = strip(replace(request, '"', '', "'", ''))
H A Dstring.py511 def replace(s, old, new, maxreplace=-1): function
512 """replace (str, old, new[, maxreplace]) -> string
519 return s.replace(old, new, maxreplace)
H A Dstringold.py402 def replace(s, old, new, maxsplit=0): function
403 """replace (str, old, new[, maxsplit]) -> string
410 return s.replace(old, new, maxsplit)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
H A Dencoder.py38 def replace(match): function in function:encode_basestring
40 return '"' + ESCAPE.sub(replace, s) + '"'
49 def replace(match): function in function:py_encode_basestring_ascii
65 return '"' + str(ESCAPE_ASCII.sub(replace, s)) + '"'
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
H A Dpytree.py132 def replace(self, new): member in class:Base
673 If content is not None, replace the dot with the parenthesized
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dinspect_fodder2.py8 def replace(func): function
20 @replace
H A Dtest_datetime.py1069 self.assertEqual(base, base.replace())
1078 got = base.replace(**{name: newval})
1084 self.assertRaises(ValueError, base.replace, year=2001)
1267 # verify ok if tzinfo.tzname().replace() returns a non-string
1271 def replace(self, *args): member in class:TestDateTime.test_strftime_with_bad_tzname_replace.MyTzInfo.tzname.MyStr
1614 self.assertEqual(base, base.replace())
1627 got = base.replace(**{name: newval})
1633 self.assertRaises(ValueError, base.replace, year=2001)
1938 self.assertEqual(base, base.replace())
1948 got = base.replace(**{nam
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
H A Dbytearrayobject.c1580 "replace string is too long");
1586 "replace string is too long");
1834 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1839 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1856 /* replace with the 'to' */
1904 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1909 PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
1928 /* replace with the 'to' */
1949 replace(PyByteArrayObject *self, function
1971 /* >>> "Python".replace("", "
[all...]
H A Dstringobject.c718 if (strcmp(errors, "replace") == 0) {
2357 "replace string is too long");
2363 "replace string is too long");
2610 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2615 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2632 /* replace with the 'to' */
2679 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2684 PyErr_SetString(PyExc_OverflowError, "replace string is too long");
2703 /* replace with the 'to' */
2724 replace(PyStringObjec function
[all...]
H A Dunicodeobject.c756 PyObject *str = PyUnicode_DecodeUTF8(s, strlen(s), "replace");
3586 * -1=not initialized, 0=unknown, 1=strict, 2=replace, 3=ignore, 4=xmlcharrefreplace */
3626 else if (!strcmp(errors, "replace"))
3639 case 2: /* replace */
4598 else if (!strcmp(errors, "replace"))
4611 case 2: /* replace */
4683 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
4971 * -1=not initialized, 0=unknown, 1=strict, 2=replace,
5023 else if (!strcmp(errors, "replace"))
5036 case 2: /* replace */
5782 PyObject *replace(PyUnicodeObject *self, function
[all...]

Completed in 1558 milliseconds