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
#include <cstdio> #include <exception> #include <fmt/base.h> #include <scn/scan.h> #include <string> int main() try { fmt::println("{}", scn::scan<std::string>(stdin, "{:[^\n]}")->value()); auto result = scn::scan<std::string>(stdin, "{:[^\n]}"); if (result) fmt::println("{}", result->value()); else fmt::println("{}", result.error().msg()); } catch (std::exception const &e) { fmt::println(stderr, "{}", e.what()); return 1; }
I tried to read a line of text from console, but it fails due to a residue \n.
\n
Hello, world! Hello, world! No characters matched in [character set]
Is there any way to ignore all whitespace characters before read?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried to read a line of text from console, but it fails due to a residue
\n
.Is there any way to ignore all whitespace characters before read?
The text was updated successfully, but these errors were encountered: