-
Notifications
You must be signed in to change notification settings - Fork 290
isdigit() expects an int, not an unsigned char #120
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
Conversation
I do not understand this change, |
It's all abut the value, not the representation. The signature of the function is clear, it expects an
Now, if the argument is not representable as an
Individual characters are routinely represented as |
In any case, as you say, the Additionally, |
As I understand it, the point is to make sure that the values are in the range of an |
4c20f6d
to
0e38668
Compare
I see. OK then, but then I feel that cast should happen sooner. This also raises the question of
|
I had that feeling too, we can certainly do that instead.
It allows C++20 projects to use
I agree, I'm hoping to add many more test cases and get the tests running as part of GitHub Actions.
I actually don't know. |
I'll investigate how non-ASCII UTF-8 text is usually handled in C. I would recommend using that single type, at least internally. Indeed, If we let end-users define I'm not fundamentally against using |
It looks like we could use We just need to use plain Given the above, the |
Thanks for conducting research on this topic, I agree with your assessment here. |
Rework #57.