Home
last modified time | relevance | path

Searched refs:subn (Results 1 – 25 of 28) sorted by relevance

12

/external/toolchain-utils/llvm_tools/
Dupdate_chromeos_llvm_hash.py254 new_symlink, is_changed = re.subn(
293 new_ebuild, is_changed = re.subn(
301 new_ebuild, is_changed = re.subn(
Dupdate_chromeos_llvm_hash_unittest.py261 new_ebuild, _is_changed = re.subn(
305 new_ebuild, _is_changed = re.subn(
/external/python/cpython2/Lib/
Dre.py157 def subn(pattern, repl, string, count=0, flags=0): function
166 return _compile(pattern, flags).subn(repl, string, count)
Dcookielib.py403 non_junk, nr_junk_chars = re.subn("^[=\s;]*", "", text)
/external/skqp/tools/lua/
Dfind_ngrams_on_ct33 new_contents, subd = re.subn(NGRAMS_LUA_SUBSTITUTION_STR,
/external/python/cpython3/Lib/
Dre.py212 def subn(pattern, repl, string, count=0, flags=0): function
221 return _compile(pattern, flags).subn(repl, string, count)
/external/python/cpython2/Lib/test/
Dtest_re.py220 self.assertEqual(re.subn("(?i)b+", "x", "bbbb BBBB"), ('x x', 2))
221 self.assertEqual(re.subn("b+", "x", "bbbb BBBB"), ('x BBBB', 1))
222 self.assertEqual(re.subn("b+", "x", "xyz"), ('xyz', 0))
223 self.assertEqual(re.subn("b*", "x", "xyz"), ('xxxyxzx', 4))
224 self.assertEqual(re.subn("b*", "x", "xyz", 2), ('xxxyz', 2))
1048 r, n = re.subn('', '', s)
/external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/
Dfirmware_Cr50ConsoleCommands.py163 output, n = re.subn('%s\s*' % regexp, '', output, 1)
/external/google-fruit/extras/scripts/
Danalyze_template_instantiations_clang_diagnostics.py309 element, _ = re.subn(strings_to_remove, '', element)
/external/python/cpython3/Lib/test/
Dtest_re.py286 self.assertEqual(re.subn("(?i)b+", "x", "bbbb BBBB"), ('x x', 2))
287 self.assertEqual(re.subn("b+", "x", "bbbb BBBB"), ('x BBBB', 1))
288 self.assertEqual(re.subn("b+", "x", "xyz"), ('xyz', 0))
289 self.assertEqual(re.subn("b*", "x", "xyz"), ('xxxyxzx', 4))
290 self.assertEqual(re.subn("b*", "x", "xyz", 2), ('xxxyz', 2))
291 self.assertEqual(re.subn("b*", "x", "xyz", count=2), ('xxxyz', 2))
1701 r, n = re.subn('', '', s)
Dtest_functools.py1827 subn = decimal.Subnormal("Exponent < Emin")
1829 self.assertEqual(g(subn), ("Exponent < Emin",))
1834 self.assertEqual(g(subn), "Too small to care.")
/external/llvm-project/llvm/utils/UpdateTestChecks/
Dcommon.py429 (lines[i], changed) = IR_VALUE_RE.subn(transform_line_vars, lines[i], count=1)
/external/python/cpython3/Modules/
D_sre.c979 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument
1145 if (subn) in pattern_subx()
/external/python/cpython2/Doc/howto/
Dregex.rst1050 | ``subn()`` | Does the same thing as :meth:`sub`, but |
1138 The :meth:`subn` method does the same work, but returns a 2-tuple containing the
1142 >>> p.subn('colour', 'blue socks and red shoes')
1144 >>> p.subn('colour', 'no colours at all')
/external/python/cpython3/Doc/howto/
Dregex.rst1072 | ``subn()`` | Does the same thing as :meth:`!sub`, but |
1159 The :meth:`~re.Pattern.subn` method does the same work, but returns a 2-tuple containing the
1163 >>> p.subn('colour', 'blue socks and red shoes')
1165 >>> p.subn('colour', 'no colours at all')
/external/python/cpython3/Doc/library/
Dre.rst916 .. function:: subn(pattern, repl, string, count=0, flags=0)
946 and :func:`subn`, only backslashes should be escaped. For example::
1095 .. method:: Pattern.subn(repl, string, count=0)
1097 Identical to the :func:`subn` function, using the compiled pattern.
/external/python/cpython2/Doc/library/
Dre.rst699 .. function:: subn(pattern, repl, string, count=0, flags=0)
817 .. method:: RegexObject.subn(repl, string, count=0)
819 Identical to the :func:`subn` function, using the compiled pattern.
/external/python/cpython2/Modules/
D_sre.c2381 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument
2554 if (subn) in pattern_subx()
/external/python/cpython3/Lib/http/
Dcookiejar.py418 non_junk, nr_junk_chars = re.subn(r"^[=\s;]*", "", text)
/external/python/cpython3/Doc/whatsnew/
D3.1.rst302 * The :func:`re.sub`, :func:`re.subn` and :func:`re.split` functions now
D3.5.rst1601 The :func:`~re.sub` and :func:`~re.subn` functions now replace unmatched
D2.7.rst1458 * The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re.subn`
/external/python/cpython2/Misc/
Dcheatsheet1704 subn(pattern,
1751 subn(repl,
1752 string[, Identical to the subn() function, using the compiled pattern.
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst1865 re.subn().
/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst1411 The re.sub(), re.subn() and re.split() functions now accept a flags

12