Expand description
Various scanning routines for the parser.
Enumsยง
- CommentState ๐
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 from
s
and return the offset in seconds. - timezone_offset_2822 ๐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.