Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More scanners #3

Closed
6 tasks done
DanielKeep opened this issue Feb 6, 2016 · 1 comment
Closed
6 tasks done

More scanners #3

DanielKeep opened this issue Feb 6, 2016 · 1 comment
Assignees

Comments

@DanielKeep
Copy link
Owner

Ideas for more scanners.

Self scanners:

Abstract scanners:

  • Various for std::time::Duration - Duration doesn't have a very nice Debug representation (although it could be parsed). Would probably be nicer to just have scanners for various units of time (Seconds, Days, etc.). ISO 8601 is a bit ugly, but covers all the usual bases. If there's demand, shorthand f64 -> Duration scanners can be added.
  • HorizontalSpace - match any horizontal spaces: \x20, \t, etc., but not newlines or vertical tabs.
  • Newline - match any of \r, \r\n, \n.

Runtime scanners:

  • until(impl Pattern) - slice until a given std::str::pattern::Pattern matches.
  • pat(impl Pattern) - use str::starts_with. - impossible given current Pattern design.
@DanielKeep DanielKeep self-assigned this Feb 29, 2016
@DanielKeep
Copy link
Owner Author

Fixed in b492961.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant