Home
last modified time | relevance | path

Searched refs:subn (Results 1 - 11 of 11) sorted by relevance

/third_party/littlefs/scripts/
H A 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)
H A Dchangeprefix.py38 line, count1 = re.subn(
42 line, count2 = re.subn(
46 line, count3 = re.subn(
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dantora-prep.py294 # pageMap and xrefMap are used in functions called by re.subn, so
310 (line, count) = re.subn(r'>>', r']', line, count=1)
323 (line, count) = re.subn(r'<<([^,>]*),([^>]+)>>',
328 (line, count) = re.subn(r'<<([^,>]*)>>',
335 (line, count) = re.subn(r'<<([^,>]*),([^>]*)$',
H A DgenRef.py415 text, _ = refLinkPattern.subn(refLinkSubstitute, text)
416 text, _ = refLinkTextPattern.subn(refLinkTextSubstitute, text)
417 text, _ = specLinkPattern.subn(specLinkSubstitute, text)
/third_party/python/Lib/re/
H A D__init__.py92 subn Same as sub, but also return the number of substitutions made.
131 "match", "fullmatch", "search", "sub", "subn", "split",
187 def subn(pattern, repl, string, count=0, flags=0): function
196 return _compile(pattern, flags).subn(repl, string, count)
316 # internal: Pattern.sub/subn implementation helper
/third_party/libfuse/test/
H A Dconftest.py68 (buf, cnt) = cp.subn('', buf, count=count)
/third_party/node/deps/v8/tools/
H A Dgen-keywords-gen-h.py33 out, n = re.subn(pattern, sub, out, flags=flags)
/third_party/python/Lib/test/
H A Dtest_re.py365 self.assertEqual(re.subn("(?i)b+", "x", "bbbb BBBB"), ('x x', 2))
366 self.assertEqual(re.subn("b+", "x", "bbbb BBBB"), ('x BBBB', 1))
367 self.assertEqual(re.subn("b+", "x", "xyz"), ('xyz', 0))
368 self.assertEqual(re.subn("b*", "x", "xyz"), ('xxxyxzx', 4))
369 self.assertEqual(re.subn("b*", "x", "xyz", 2), ('xxxyz', 2))
370 self.assertEqual(re.subn("b*", "x", "xyz", count=2), ('xxxyz', 2))
1849 r, n = re.subn('', '', s)
H A Dtest_functools.py1963 subn = decimal.Subnormal("Exponent < Emin")
1965 self.assertEqual(g(subn), ("Exponent < Emin",))
1970 self.assertEqual(g(subn), "Too small to care.")
/third_party/python/Modules/_sre/
H A Dsre.c19 * 2001-10-21 fl added sub/subn primitive
21 * 2001-12-07 fl fixed memory leak in sub/subn (Guido van Rossum)
22 * 2002-11-09 fl fixed empty sub/subn return type
1055 Py_ssize_t subn) in pattern_subx()
1072 /* sub/subn takes either a function or a template */ in pattern_subx()
1221 if (subn) in pattern_subx()
1257 _sre.SRE_Pattern.subn
1050 pattern_subx(_sremodulestate* module_state, PatternObject* self, PyObject* ptemplate, PyObject* string, Py_ssize_t count, Py_ssize_t subn) pattern_subx() argument
/third_party/python/Lib/http/
H A Dcookiejar.py425 non_junk, nr_junk_chars = re.subn(r"^[=\s;]*", "", text)

Completed in 18 milliseconds