Home
last modified time | relevance | path

Searched refs:subpatterns (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/lib2to3/
Dbtm_utils.py237 def get_characteristic_subpattern(subpatterns): argument
242 if not isinstance(subpatterns, list):
243 return subpatterns
244 if len(subpatterns)==1:
245 return subpatterns[0]
253 for subpattern in subpatterns:
266 subpatterns = subpatterns_with_names
268 subpatterns = subpatterns_with_common_names
270 subpatterns = subpatterns_with_common_chars
272 return max(subpatterns, key=len)
/third_party/python/Doc/reference/
Dcompound_stmts.rst522 value (following ``match``). The pattern (which may contain subpatterns) is
557 During failed pattern matches, some subpatterns may succeed. Do not
711 An OR pattern matches each of its subpatterns in turn to the subject value,
713 if none of the subpatterns succeed, the OR pattern fails.
855 A sequence pattern contains several subpatterns to be matched against sequence elements.
895 subpatterns, the sequence pattern fails
899 as a subpattern fails. If all subpatterns succeed in matching their
905 subpatterns, the sequence pattern fails.
907 #. The leading non-star subpatterns are matched to their corresponding items
912 corresponding to non-star subpatterns following the star subpattern.
[all …]
/third_party/pcre2/pcre2/
DHACKING115 named subpatterns had been discovered by fuzzers. Most of these were related to
123 all the named subpatterns and their corresponding group numbers. This means
667 used for subpatterns that do not repeat indefinitely, OP_KETRMIN and
712 These are just like other subpatterns, but they start with the opcode OP_ONCE.
720 Forward assertions are also just like other subpatterns, but starting with one
732 Conditional subpatterns
735 These are like other subpatterns, but they start with the opcode OP_COND, or
DNEWS381 4. The way named subpatterns are handled has been refactored. The previous
DChangeLog515 1. The maximum number of capturing subpatterns is 65535 (documented), but no
2406 subpatterns were not being diagnosed and could lead to unpredictable behaviour.
2479 33. A lookbehind assertion within a set of mutually recursive subpatterns could
2487 36. The way named subpatterns are handled has been refactored. There is now a
2489 subpatterns and count the total captures. This means that information about
/third_party/python/Doc/library/
Dast.rst1365 length sequence if one of the subpatterns is a ``MatchStar`` node, otherwise
1585 A match "or-pattern". An or-pattern matches each of its subpatterns in turn
1587 succeed. If none of the subpatterns succeed the or-pattern fails. The
/third_party/pcre2/pcre2/testdata/
Dtestinput15890 # This pattern uses a lot of named subpatterns in order to match email
5891 # addresses in various formats. It's a heavy test for named subpatterns. In the
5898 # This set of subpatterns is more or less a direct transliteration of the BNF
5952 # heavy test for named subpatterns. Once again, code slash as \x{2f} and escape
Dtestoutput19444 # This pattern uses a lot of named subpatterns in order to match email
9445 # addresses in various formats. It's a heavy test for named subpatterns. In the
9452 # This set of subpatterns is more or less a direct transliteration of the BNF
9517 # heavy test for named subpatterns. Once again, code slash as \x{2f} and escape
Dtestoutput24491 Failed: error 143 at offset 16: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
4494 Failed: error 143 at offset 31: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
5789 Failed: error 143 at offset 18: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
5980 Failed: error 143 at offset 38: two named subpatterns have the same name (PCRE2_DUPNAMES not set)
9783 Failed: error 165 at offset 16: different names for subpatterns of the same number are not allowed
/third_party/pcre2/pcre2/maint/
DREADME338 . PCRE2 cannot at present distinguish between subpatterns with different names,
/third_party/pcre2/pcre2/doc/
Dpcre2.txt5581 of nesting of parenthesized subpatterns of all kinds. This is imposed
9905 long subject strings is to write repeated parenthesized subpatterns to
10119 number of capturing subpatterns in the regular expression. Various er-
10230 elements relate to the capturing subpatterns of the regular expression.
/third_party/node/tools/
Dlint-md.mjs4757 let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
4758 return subpatterns.join('|');