Expand description
Various scanning routines for the parser.
Enumsยง
- Comment
State ๐
Functionsยง
- char ๐Tries to consume exactly one given character.
- colon_
or_ ๐space Consumes any number (including zero) of colon or spaces. - comment_
2822 ๐Tries to consume an RFC2822 comment including preceding - nanosecond ๐Tries to consume at least one digits as a fractional second. Returns the number of whole nanoseconds (0โ999,999,999).
- nanosecond_
fixed ๐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. - short_
month0 ๐Tries to parse the month index (0 through 11) with the first three ASCII letters. - short_
or_ ๐long_ month0 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.
- short_
weekday ๐Tries to parse the weekday with the first three ASCII letters. - space ๐Tries to consume one or more whitespace.
- timezone_
offset ๐Parse a timezone froms
and return the offset in seconds. - timezone_
offset_ ๐2822 Same astimezone_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.