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

scan_list_ex() issue #67

Closed
mark-99 opened this issue May 27, 2022 · 2 comments
Closed

scan_list_ex() issue #67

mark-99 opened this issue May 27, 2022 · 2 comments

Comments

@mark-99
Copy link

mark-99 commented May 27, 2022

This is pretty much an exact example from the docs:

std::vector<std::string> vec;
auto result = scn::scan_list_ex("123, 456,\n789", vec, scn::list_separator_and_until(',', '\n'));

The (unexpected) result is that the vector contains 2 elements "123," and "456," (ie the comma is in the result string).

If I change the input string to "123,456,\n789" (ie remove the space) the output is 1 element of "123,456,". So it looks a lot like it's just splitting at the whitespace.

I'm using v1.0 (latest available in vcpkg).

@tbe
Copy link

tbe commented Nov 14, 2022

Same issue here with 1.1.2

@eliaskosunen
Copy link
Owner

scan_list is no longer available: closing.

@eliaskosunen eliaskosunen closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
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

3 participants