__cpp_lib_char8_t is generally available now

...after 1eef078050 "Bump baseline to C++20"

Change-Id: I45aa7538174a0c62ad5a4871e2914b30580546c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157827
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2023-10-11 13:45:30 +02:00
parent 66cf022ec6
commit 8ef60830e4

View file

@ -154,13 +154,7 @@ consteval
#else
constexpr
#endif
auto createUriCharClass(
#if defined __cpp_lib_char8_t
std::u8string_view
#else
std::string_view
#endif
unencoded)
auto createUriCharClass(std::u8string_view unencoded)
{
std::array<sal_Bool, UriCharClassSize> a = {};
for (auto c: unencoded) {