[][src]Module nom::character::streaming

character specific parsers and combinators, streaming version

functions recognizing specific characters

Functions

alpha0

Recognizes zero or more lowercase and uppercase alphabetic characters. For ASCII strings: a-zA-Z For UTF8 strings, any alphabetic code point (ie, not only the ASCII ones)

alpha1

Recognizes one or more lowercase and uppercase alphabetic characters For ASCII strings: a-zA-Z For UTF8 strings, any alphabetic code point (ie, not only the ASCII ones)

alphanumeric0

Recognizes zero or more numerical and alphabetic characters. For ASCII strings: 0-9a-zA-Z For UTF8 strings, 0-9 and any alphabetic code point (ie, not only the ASCII ones)

alphanumeric1

Recognizes one or more numerical and alphabetic characters. For ASCII strings: 0-9a-zA-Z For UTF8 strings, 0-9 and any alphabetic code point (ie, not only the ASCII ones)

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.

char

Recognizes one character

crlf

recognizes the string "\r\n"

digit0

Recognizes zero or more numerical characters: 0-9

digit1

Recognizes one or more numerical characters: 0-9

hex_digit0

Recognizes zero or more hexadecimal numerical characters: 0-9, A-F, a-f

hex_digit1

Recognizes one or more hexadecimal numerical characters: 0-9, A-F, a-f

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' or '\n'

oct_digit0

Recognizes zero or more octal characters: 0-7

oct_digit1

Recognizes one or more octal characters: 0-7 streaming version: will return Err(nom::Err::Incomplete(_)) if there's not enough input data, or if no terminating token is found (a non octal digit character)

one_of

Recognizes one of the provided characters

space0

Recognizes zero or more spaces and tabs

space1

Recognizes one or more spaces and tabs

tab

matches a tab character '\t'