qcontent = qtext / quoted-pair We allow anything except the DQUOTE character, but if we find any ASCII other than the RFC defined printable ASCII, a NonPrintableDefect is added to the token's defects list. Any quoted pairs are converted to their unquoted values, so what is returned
(value)
| 1206 | return ptext, value |
| 1207 | |
| 1208 | def get_qcontent(value): |
| 1209 | """qcontent = qtext / quoted-pair |
| 1210 | |
| 1211 | We allow anything except the DQUOTE character, but if we find any ASCII |
| 1212 | other than the RFC defined printable ASCII, a NonPrintableDefect is |
| 1213 | added to the token's defects list. Any quoted pairs are converted to their |
| 1214 | unquoted values, so what is returned is a 'ptext' token. In this case it |
| 1215 | is a ValueTerminal. |
| 1216 | |
| 1217 | """ |
| 1218 | ptext, value, _ = _get_ptext_to_endchars(value, '"') |
| 1219 | ptext = ValueTerminal(ptext, 'ptext') |
| 1220 | _validate_xtext(ptext) |
| 1221 | return ptext, value |
| 1222 | |
| 1223 | def get_atext(value): |
| 1224 | """atext = <matches _atext_matcher> |
no test coverage detected
searching dependent graphs…