/third_party/littlefs/scripts/ |
D | prefix.py | 21 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/ |
D | find_ngrams_on_ct | 33 new_contents, subd = re.subn(NGRAMS_LUA_SUBSTITUTION_STR,
|
/third_party/python/Lib/ |
D | re.py | 212 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/ |
D | bump_version.py | 31 text, n = re.compile(source, re.MULTILINE).subn(target, text)
|
/third_party/python/Lib/test/ |
D | test_re.py | 286 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)
|
D | test_functools.py | 1827 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/ |
D | cplusplus.py | 82 x, subs = pat.subn(repl, txt, count)
|
/third_party/python/Modules/ |
D | _sre.c | 979 Py_ssize_t count, Py_ssize_t subn) in pattern_subx() argument 1145 if (subn) in pattern_subx()
|
/third_party/python/Doc/howto/ |
D | regex.rst | 1072 | ``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/ |
D | re.rst | 916 .. 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/ |
D | 3.1.rst | 302 * The :func:`re.sub`, :func:`re.subn` and :func:`re.split` functions now
|
D | 3.5.rst | 1601 The :func:`~re.sub` and :func:`~re.subn` functions now replace unmatched
|
D | 2.7.rst | 1458 * The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re.subn`
|
/third_party/python/Lib/http/ |
D | cookiejar.py | 418 non_junk, nr_junk_chars = re.subn(r"^[=\s;]*", "", text)
|
/third_party/boost/libs/math/doc/graphs/hypergeometric_1f1/ |
D | plotlyjs-bundle.js | 1 …subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,…
|
/third_party/python/Misc/ |
D | HISTORY | 15381 - 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
|
D | NEWS | 25074 re.sub() and re.subn().
|