Expand description
This module contains a number of helper functions for writing parsers.
Ironically they are also needed when writing mail encoders/generators e.g. for checking if a part need special encoding.
Modules§
- encoded_
word - Grammar parts for encoded words (based on RFC 2047).
Functions§
- is_
any_ whitespace - any whitespace (char::is_whitespace)
- is_
ascii - True if
ch
is us-ascii (i.e. <128) - is_
ascii_ vchar - True if
ch
is ascii and “visible”/“printable”. - is_
atext - atext as defined by RFC 5322
- is_
ctext - ctext as defined by RFC 5322
- is_ctl
- Chack if it is a CTL char (based on RFC 822).
- is_
dtext - dtext as defined by RFC 5322
- is_
especial - Check if a char is especial (based on RFC …).
- is_
ftext - ftext as defined by RFC 5322
- is_
qtext - qtext as defined by RFC 5322
- is_
quotable - can be quoted in a quoted string (internalized) based on RFC … and RFC …
- is_
quoted_ string - True if the given string is a quoted string.
- is_
space - True if
ch
is' '
- is_
special - check if a char is a especial (based on RFC 5322)
- is_
token - Check if a string is an token (based on RFC …).
- is_
token_ char - Check if a char is an token char (based on RFC 2045).
- is_
tspecial - check if a char is an tspecial (based on RFC 2045)
- is_
vchar - VCHAR as defined by RFC 5243
- is_ws
- WS as defined by RFC 5234