Lines Matching refs:ptext
63 may be produced: 'ptext'. A 'ptext' is a string of printable ascii characters.
646 if x.token_type == 'ptext':
997 """Scan printables/quoted-pairs until endchars and return unquoted ptext.
1162 a 'ptext' token. In this case it is a WhiteSpaceTerminal, so it's value
1166 ptext, value, _ = _get_ptext_to_endchars(value, '()')
1167 ptext = WhiteSpaceTerminal(ptext, 'ptext')
1168 _validate_xtext(ptext)
1169 return ptext, value
1177 unquoted values, so what is returned is a 'ptext' token. In this case it
1181 ptext, value, _ = _get_ptext_to_endchars(value, '"')
1182 ptext = ValueTerminal(ptext, 'ptext')
1183 _validate_xtext(ptext)
1184 return ptext, value
1537 unquoted values, so what is returned is a ptext token, in this case a
1542 ptext, value, had_qp = _get_ptext_to_endchars(value, '[]')
1543 ptext = ValueTerminal(ptext, 'ptext')
1545 ptext.defects.append(errors.ObsoleteHeaderDefect(
1547 _validate_xtext(ptext)
1548 return ptext, value
2781 if part.token_type == 'ptext' and set(tstr) & SPECIALS: