-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
std.utf: Add isValidCodepoint. #8043
Conversation
|
Thanks for your pull request and interest in making D better, @berni44! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#8043" |
|
What's the problem with I suggest a different name. This function is named as if it was testing the validity of a code unit. |
|
Or at least they should convert to |
|
@berni44 You got tired of waiting for review? @atilaneves is there anything anymore blocking merging this right away? |
|
Sorry for the late review. Looks fine. |
|
The changelog was not updated to the new name! |
For improving formatting characters with
std.formatI need this function (e.g. fixing issue 21815, but can also be used for issue 6125). I could add it as a private function tostd.format, but I think, it fits better in here and might be useful for users too. Especially, because thedcharversion already exists here asisValidDchar, whileisValidWcharandisValidCharare missing (and it's not D like to use these functions instead of a single template).I did not manage to find out, why
isValidDcharwas designed like this. It was added in 2007 to git, but probably existed prior to that somewhere else. Eventually,isValidCharactermight replaceisValidDchar. (Should I do so immediately?)cc @atilaneves