Home
last modified time | relevance | path

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

/external/python/cpython3/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)
/external/python/cpython2/Lib/lib2to3/
Dbtm_utils.py238 def get_characteristic_subpattern(subpatterns): argument
243 if not isinstance(subpatterns, list):
244 return subpatterns
245 if len(subpatterns)==1:
246 return subpatterns[0]
254 for subpattern in subpatterns:
267 subpatterns = subpatterns_with_names
269 subpatterns = subpatterns_with_common_names
271 subpatterns = subpatterns_with_common_chars
273 return max(subpatterns, key=len)
/external/pcre/dist2/testdata/
Dtestoutput2037 Named capturing subpatterns:
70 Named capturing subpatterns:
Dtestoutput24138 Named capturing subpatterns:
4172 Named capturing subpatterns:
4198 Named capturing subpatterns:
4207 Named capturing subpatterns:
4365 Named capturing subpatterns:
4388 Named capturing subpatterns:
4425 Named capturing subpatterns:
4465 Named capturing subpatterns:
4482 Named capturing subpatterns:
4490 Named capturing subpatterns:
[all …]
Dtestinput15897 # This pattern uses a lot of named subpatterns in order to match email
5898 # addresses in various formats. It's a heavy test for named subpatterns. In the
5905 # This set of subpatterns is more or less a direct transliteration of the BNF
5959 # heavy test for named subpatterns. Once again, code slash as \x{2f} and escape
Dtestoutput19454 # This pattern uses a lot of named subpatterns in order to match email
9455 # addresses in various formats. It's a heavy test for named subpatterns. In the
9462 # This set of subpatterns is more or less a direct transliteration of the BNF
9527 # heavy test for named subpatterns. Once again, code slash as \x{2f} and escape
/external/pcre/dist2/
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
664 used for subpatterns that do not repeat indefinitely, OP_KETRMIN and
709 These are just like other subpatterns, but they start with the opcode OP_ONCE.
717 Forward assertions are also just like other subpatterns, but starting with one
727 Conditional subpatterns
730 These are like other subpatterns, but they start with the opcode OP_COND, or
DNEWS216 4. The way named subpatterns are handled has been refactored. The previous
DChangeLog1559 subpatterns were not being diagnosed and could lead to unpredictable behaviour.
1632 33. A lookbehind assertion within a set of mutually recursive subpatterns could
1640 36. The way named subpatterns are handled has been refactored. There is now a
1642 subpatterns and count the total captures. This means that information about
/external/pcre/dist2/doc/
Dpcre2.txt1463 If this bit is set, names used to identify capturing subpatterns need
1466 matched. There are more details of named subpatterns below; see also
1498 introduce various parenthesized subpatterns, nor within numerical quan-
2025 third argument should point to an uint32_t variable. Named subpatterns
2043 subpatterns. The third argument should point to an uint32_t variable.
2225 Duplicate names for subpatterns with different numbers are permitted,
2229 necessarily the case because later subpatterns may have lower numbers.
2238 There are four named subpatterns, so the table has four entries, and
2248 When writing code to extract data from named subpatterns using the
2647 how many capturing subpatterns there are in a compiled pattern.
[all …]
/external/python/cpython2/Misc/
Dcheatsheet1694 string[, used inpattern, then occurrences of patterns or subpatterns are