[libcxx-commits] [PATCH] D119441: [libc++] Fix simple cases of locale name construction

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 3 07:21:02 PDT 2023


ldionne accepted this revision.
ldionne added a comment.
This revision is now accepted and ready to land.

Let's rebase and ship, sorry for the delay. This LGTM now, it's indeed much smaller than initially.



================
Comment at: libcxx/src/locale.cpp:125-135
+const string
+build_name(const string& other, const string& one, locale::category c) {
+    if (other == "*" || one == "*")
+        return "*";
+    if (c == locale::none || other == one)
+        return other;
+
----------------



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119441/new/

https://reviews.llvm.org/D119441



More information about the libcxx-commits mailing list