Module winnow::ascii

source ·
Expand description

Character specific parsers and combinators

Functions recognizing specific characters

Traits§

Functions§

  • Recognizes zero or more lowercase and uppercase ASCII alphabetic characters: 'a'..='z', 'A'..='Z'
  • Recognizes one or more lowercase and uppercase ASCII alphabetic characters: 'a'..='z', 'A'..='Z'
  • Recognizes zero or more ASCII numerical and alphabetic characters: 'a'..='z', 'A'..='Z', '0'..='9'
  • Recognizes one or more ASCII numerical and alphabetic characters: 'a'..='z', 'A'..='Z', '0'..='9'
  • Recognizes the string "\r\n".
  • Decode a decimal signed integer (e.g. i32)
  • Decode a decimal unsigned integer (e.g. u32)
  • Recognizes zero or more ASCII numerical characters: '0'..='9'
  • Recognizes one or more ASCII numerical characters: '0'..='9'
  • Matches a byte string with escaped characters.
  • Matches a byte string with escaped characters.
  • Recognizes floating point number in text format and returns a f32 or f64.
  • Recognizes zero or more ASCII hexadecimal numerical characters: '0'..='9', 'A'..='F', 'a'..='f'
  • Recognizes one or more ASCII hexadecimal numerical characters: '0'..='9', 'A'..='F', 'a'..='f'
  • Decode a variable-width hexadecimal integer (e.g. u32)
  • Recognizes an end of line (both "\n" and "\r\n").
  • Recognizes zero or more spaces, tabs, carriage returns and line feeds.
  • Recognizes one or more spaces, tabs, carriage returns and line feeds.
  • Matches a newline character '\n'.
  • Recognizes a string of any char except "\r\n" or "\n".
  • Recognizes zero or more octal characters: '0'..='7'
  • Recognizes one or more octal characters: '0'..='7'
  • Recognizes zero or more spaces and tabs.
  • Recognizes zero or more spaces and tabs.
  • Matches a tab character '\t'.