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

Add string to bool converter #112

Open
codein-dev opened this issue Mar 22, 2021 · 1 comment
Open

Add string to bool converter #112

codein-dev opened this issue Mar 22, 2021 · 1 comment
Assignees
Labels
enhancement Request for improving the existing feature
Projects

Comments

@codein-dev
Copy link
Contributor

toAnyConverter<int>([](const std::string& s) {

@codein-dev codein-dev added the enhancement Request for improving the existing feature label Mar 22, 2021
@codein-dev codein-dev added this to To do in falcon via automation Mar 22, 2021
@codein-dev
Copy link
Contributor Author

We don't yet have string to bool converter but yes/no or true/false kind of data is very common. The following strings should be converted to true.

  • YES, yes, Yes, Y, y, 1, true, t

And following values should be converted to false.

  • NO, no, No, N, n, 0, false, f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for improving the existing feature
Projects
falcon
To do
Development

No branches or pull requests

2 participants