This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Implements isblank.
ClosedPublic

Authored by Mordante on Apr 8 2023, 6:00 AM.

Details

Reviewers
philnik
Group Reviewers
Restricted Project
Commits
rG0bc0edb847a0: [libc++] Implements isblank.
Summary

This omission seems to be there for a long time, it's in the initial
libc++ import. This was discovered while working on the std modules.

Diff Detail

Event Timeline

Mordante created this revision.Apr 8 2023, 6:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 6:00 AM
Mordante requested review of this revision.Apr 8 2023, 6:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 6:00 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Apr 8 2023, 6:37 AM
philnik added a subscriber: philnik.

Crazy that nobody complained about this in the past 10 years. LGTM.

libcxx/include/__locale
931–938

Maybe clang-format this?

libcxx/test/std/localization/locales/locale.convenience/classification/isblank.pass.cpp
21

Is \t also considered blank?

This revision is now accepted and ready to land.Apr 8 2023, 6:37 AM
Mordante marked 2 inline comments as done.Apr 9 2023, 4:11 AM

Crazy that nobody complained about this in the past 10 years. LGTM.

Agreed, I even searched for a bug report, but there is none. Maybe it's a hint how popular locale support in C++ is ;-)

Thanks for the review!

libcxx/test/std/localization/locales/locale.convenience/classification/isblank.pass.cpp
21

It should be, but the list is not exhaustive, I did the same as for similar tests.

This revision was landed with ongoing or failed builds.Apr 9 2023, 4:13 AM
This revision was automatically updated to reflect the committed changes.
Mordante marked an inline comment as done.