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)
| 1189 | return ptext, value |
| 1190 | |
| 1191 | def get_qcontent(value): |
| 1192 | """qcontent = qtext / quoted-pair |
| 1193 | |
| 1194 | We allow anything except the DQUOTE character, but if we find any ASCII |
| 1195 | other than the RFC defined printable ASCII, a NonPrintableDefect is |
| 1196 | added to the token's defects list. Any quoted pairs are converted to their |
| 1197 | unquoted values, so what is returned is a 'ptext' token. In this case it |
| 1198 | is a ValueTerminal. |
| 1199 | |
| 1200 | """ |
| 1201 | ptext, value, _ = _get_ptext_to_endchars(value, '"') |
| 1202 | ptext = ValueTerminal(ptext, 'ptext') |
| 1203 | _validate_xtext(ptext) |
| 1204 | return ptext, value |
| 1205 | |
| 1206 | def get_atext(value): |
| 1207 | """atext = <matches _atext_matcher> |
no test coverage detected