Expand description
Character specific parsers and combinators, complete input version.
Functions recognizing specific characters.
Functions§
- alpha0
- Recognizes zero or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z
- alpha1
- Recognizes one or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z
- alphanumeric0
- Recognizes zero or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z
- alphanumeric1
- Recognizes one or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z
- anychar
- Matches one byte as a character. Note that the input type will
accept a
str
, but not a&[u8]
, unlike many other nom parsers. - bin_
digit0 - Recognizes zero or more binary characters: 0-1
- bin_
digit1 - Recognizes one or more binary characters: 0-1
- char
- Recognizes one character.
- crlf
- Recognizes the string “\r\n”.
- digit0
- Recognizes zero or more ASCII numerical characters: 0-9
- digit1
- Recognizes one or more ASCII numerical characters: 0-9
- hex_
digit0 - Recognizes zero or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f
- hex_
digit1 - Recognizes one or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f
- i8
- will parse a number in text form to a number
- i16
- will parse a number in text form to a number
- i32
- will parse a number in text form to a number
- i64
- will parse a number in text form to a number
- i128
- will parse a number in text form to a number
- isize
- will parse a number in text form to a number
- line_
ending - Recognizes an end of line (both ‘\n’ and ‘\r\n’).
- multispace0
- Recognizes zero or more spaces, tabs, carriage returns and line feeds.
- multispace1
- Recognizes one or more spaces, tabs, carriage returns and line feeds.
- newline
- Matches a newline character ‘\n’.
- none_of
- Recognizes a character that is not in the provided characters.
- not_
line_ ending - Recognizes a string of any char except ‘\r\n’ or ‘\n’.
- oct_
digit0 - Recognizes zero or more octal characters: 0-7
- oct_
digit1 - Recognizes one or more octal characters: 0-7
- one_of
- Recognizes one of the provided characters.
- satisfy
- Recognizes one character and checks that it satisfies a predicate
- space0
- Recognizes zero or more spaces and tabs.
- space1
- Recognizes one or more spaces and tabs.
- tab
- Matches a tab character ‘\t’.
- u8
- will parse a number in text form to a number
- u16
- will parse a number in text form to a number
- u32
- will parse a number in text form to a number
- u64
- will parse a number in text form to a number
- u128
- will parse a number in text form to a number
- usize
- will parse a number in text form to a number