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

Implement P2572R1 std::format() fill character allowances #3629

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

cpplearner
Copy link
Contributor

@cpplearner cpplearner commented Apr 6, 2023

MSVC STL already allows multi-code-unit fill characters, but it does not check if a Unicode code unit sequence corresponds to a Unicode scalar value. This PR adds the check.

I'm not a fan of out parameters, but they get the job done here.

Fixes #3439.

@cpplearner cpplearner requested a review from a team as a code owner April 6, 2023 08:22
@StephanTLavavej StephanTLavavej added format C++20/23 format cxx23 C++23 feature labels Apr 6, 2023
stl/inc/format Outdated Show resolved Hide resolved
stl/inc/format Outdated Show resolved Hide resolved
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit ca5833c into microsoft:main Apr 14, 2023
@StephanTLavavej
Copy link
Member

Thanks for implementing this C++23 feature and improving <format>! 😻 🚀 🎉

@cpplearner cpplearner deleted the p2572r1 branch April 14, 2023 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature format C++20/23 format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2572R1 std::format Fill Character Allowances
4 participants