Expand description
Various scanning routines for the parser.
Enums§
Functions§
- char 🔒Tries to consume exactly one given character.
- Consumes any number (including zero) of colon or spaces.
- Tries to consume an RFC2822 comment including preceding
- Tries to consume at least one digits as a fractional second. Returns the number of whole nanoseconds (0–999,999,999).
- Tries to consume a fixed number of digits as a fractional second. Returns the number of whole nanoseconds (0–999,999,999).
- number 🔒Tries to parse the non-negative number from
min
tomax
digits. - Tries to parse the month index (0 through 11) with the first three ASCII letters.
- Tries to parse the month index (0 through 11) with short or long month names. It prefers long month names to short month names when both are possible.
- Tries to parse the weekday with short or long weekday names. It prefers long weekday names to short weekday names when both are possible.
- Tries to parse the weekday with the first three ASCII letters.
- space 🔒Tries to consume one or more whitespace.
- Parse a timezone from
s
and return the offset in seconds. - Same as
timezone_offset
but also allows for RFC 2822 legacy timezones. May returnNone
which indicates an insufficient offset data (i.e.-0000
). See RFC 2822 Section 4.3.