/third_party/littlefs/scripts/ |
H A 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)
|
H A D | changeprefix.py | 38 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 D | antora-prep.py | 294 # 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 D | genRef.py | 415 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__.py | 92 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 D | conftest.py | 68 (buf, cnt) = cp.subn('', buf, count=count)
|
/third_party/node/deps/v8/tools/ |
H A D | gen-keywords-gen-h.py | 33 out, n = re.subn(pattern, sub, out, flags=flags)
|
/third_party/python/Lib/test/ |
H A D | test_re.py | 365 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 D | test_functools.py | 1963 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 D | sre.c | 19 * 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 D | cookiejar.py | 425 non_junk, nr_junk_chars = re.subn(r"^[=\s;]*", "", text)
|