[libcxx-commits] [libcxx] [libcxx] Provide locale conversions to tests through lit substitution (PR #105651)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 24 12:28:50 PDT 2024
================
@@ -80,6 +49,12 @@ std::wstring negate_en_US(std::wstring s) {
#endif
}
+wchar_t thousands_sep_or_default(std::wstring s) { return !s.empty() ? s[0] : L','; }
----------------
ldionne wrote:
> You mean, that rather than the individual tests doing `const wchar_t fr_sep = LocaleHelpers::mon_thousands_sep_or_default(FR_MON_THOU_SEP);`, we'd just go `const wchar_t fr_sep = FR_MON_THOU_SEP;`?
Yes, exactly!
https://github.com/llvm/llvm-project/pull/105651
More information about the libcxx-commits
mailing list