r"""ctext = This is not the RFC ctext, since we are handling nested comments in comment and unquoting quoted-pairs here. We allow anything except the '()' characters, but if we find any ASCII other than the RFC defined printable ASCII, a NonPrintableD
(value)
| 1189 | return unstructured |
| 1190 | |
| 1191 | def get_qp_ctext(value): |
| 1192 | r"""ctext = <printable ascii except \ ( )> |
| 1193 | |
| 1194 | This is not the RFC ctext, since we are handling nested comments in comment |
| 1195 | and unquoting quoted-pairs here. We allow anything except the '()' |
| 1196 | characters, but if we find any ASCII other than the RFC defined printable |
| 1197 | ASCII, a NonPrintableDefect is added to the token's defects list. Since |
| 1198 | quoted pairs are converted to their unquoted values, what is returned is |
| 1199 | a 'ptext' token. In this case it is a WhiteSpaceTerminal, so it's value |
| 1200 | is ' '. |
| 1201 | |
| 1202 | """ |
| 1203 | ptext, value, _ = _get_ptext_to_endchars(value, '()') |
| 1204 | ptext = WhiteSpaceTerminal(ptext, 'ptext') |
| 1205 | _validate_xtext(ptext) |
| 1206 | return ptext, value |
| 1207 | |
| 1208 | def get_qcontent(value): |
| 1209 | """qcontent = qtext / quoted-pair |
no test coverage detected
searching dependent graphs…