From aad521082009fa41c5db02a3ee9151db4c2d338c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Nov 2022 00:36:44 +0100 Subject: [PATCH] lib/icu/CaseFold: use ToStringView() --- src/lib/icu/CaseFold.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/icu/CaseFold.cxx b/src/lib/icu/CaseFold.cxx index a4b74761c..2d9f6a24e 100644 --- a/src/lib/icu/CaseFold.cxx +++ b/src/lib/icu/CaseFold.cxx @@ -27,6 +27,7 @@ #ifdef HAVE_ICU #include "Util.hxx" #include "util/AllocatedArray.hxx" +#include "util/SpanCast.hxx" #include #include @@ -57,7 +58,7 @@ try { return {src}; folded.SetSize(folded_length); - return UCharToUTF8(std::basic_string_view{folded.data(), folded.size()}); + return UCharToUTF8(ToStringView(std::span{folded})); #else #error not implemented