We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I often need to scan a string and check that the entire string was consumed. I can do:
int num; auto result = scn::scan(filename, "item-{}.txt", num); if (result && result.range().empty()) { // Filename is valid }
but I would rather type something like:
int num; if (scn::scan_all(filename, "item-{}.txt", num)) { // Filename is valid }
Could this be considered (or is there some other simple way to do this that I am missing)?
The text was updated successfully, but these errors were encountered:
At least for now, I don't consider this worth increasing the API surface.
Sorry, something went wrong.
No branches or pull requests
I often need to scan a string and check that the entire string was consumed. I can do:
but I would rather type something like:
Could this be considered (or is there some other simple way to do this that I am missing)?
The text was updated successfully, but these errors were encountered: