Searched refs:domain_literal (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/email/ |
D | _header_value_parser.py | 1550 def _check_for_early_dl_end(value, domain_literal): argument 1553 domain_literal.append(errors.InvalidHeaderDefect( 1555 domain_literal.append(ValueTerminal(']', 'domain-literal-end')) 1562 domain_literal = DomainLiteral() 1565 domain_literal.append(token) 1572 if _check_for_early_dl_end(value, domain_literal): 1573 return domain_literal, value 1574 domain_literal.append(ValueTerminal('[', 'domain-literal-start')) 1577 domain_literal.append(token) 1579 domain_literal.append(token) [all …]
|
/third_party/python/Lib/test/test_email/ |
D | test__header_value_parser.py | 1281 domain_literal = domain_literal = self._test_get_x(parser.get_domain_literal, 1287 self.assertEqual(domain_literal.token_type, 'domain-literal') 1288 self.assertEqual(domain_literal.domain, '[127.0.0.1]') 1289 self.assertEqual(domain_literal.ip, '127.0.0.1') 1292 domain_literal = self._test_get_x(parser.get_domain_literal, 1298 self.assertEqual(domain_literal.domain, '[127.0.0.1]') 1299 self.assertEqual(domain_literal.ip, '127.0.0.1') 1302 domain_literal = self._test_get_x(parser.get_domain_literal, 1308 self.assertEqual(domain_literal.domain, '[127.0.0.1]') 1309 self.assertEqual(domain_literal.ip, '127.0.0.1')
|
/third_party/pcre2/pcre2/testdata/ |
D | testinput1 | 5916 (?<domain> (?&dot_atom) | (?&domain_literal) ) 5917 (?<domain_literal> (?&CFWS)?+ \[ (?: (?&FWS)?+ (?&dcontent) )* (?&FWS)?+ \]
|
D | testoutput1 | 9470 (?<domain> (?&dot_atom) | (?&domain_literal) ) 9471 (?<domain_literal> (?&CFWS)?+ \[ (?: (?&FWS)?+ (?&dcontent) )* (?&FWS)?+ \]
|