Home
last modified time | relevance | path

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

/third_party/littlefs/scripts/
Dprefix.py21 def subn(from_prefix, to_prefix, name): function
22 name, count1 = re.subn('\\b'+from_prefix, to_prefix, name)
23 name, count2 = re.subn('\\b'+from_prefix.upper(), to_prefix.upper(), name)
24 name, count3 = re.subn('\\B-D'+from_prefix.upper(),
38 newname, namecount = subn(from_prefix, to_prefix, oldname)
47 line, n = subn(from_prefix, to_prefix, line)
/third_party/flutter/skia/tools/lua/
Dfind_ngrams_on_ct33 new_contents, subd = re.subn(NGRAMS_LUA_SUBSTITUTION_STR,
/third_party/python/Lib/
Dre.py212 def subn(pattern, repl, string, count=0, flags=0): function
221 return _compile(pattern, flags).subn(repl, string, count)
/third_party/boost/tools/build/src/engine/
Dbump_version.py31 text, n = re.compile(source, re.MULTILINE).subn(target, text)
/third_party/python/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.")
/third_party/boost/tools/litre/
Dcplusplus.py82 x, subs = pat.subn(repl, txt, count)
/third_party/python/Modules/
D_sre.c979 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument
1145 if (subn) in pattern_subx()
/third_party/python/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')
/third_party/python/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.
/third_party/python/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`
/third_party/python/Lib/http/
Dcookiejar.py418 non_junk, nr_junk_chars = re.subn(r"^[=\s;]*", "", text)
/third_party/boost/libs/math/doc/graphs/hypergeometric_1f1/
Dplotlyjs-bundle.js1subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,…
/third_party/python/Misc/
DHISTORY15381 - The re.sub(), re.subn() and re.split() functions now accept a flags parameter.
23709 pattern.subn() methods have been rewritten in C. Also, an
28609 - re.py: fixed a bug in subn(), which caused .groups() to fail inside
31186 is now obsolete -- use the sub() or subn() functions or methods in the
DNEWS25074 re.sub() and re.subn().