lib/icu/CaseFold: use ToStringView()
This commit is contained in:
parent
7c4fca0ae1
commit
aad5210820
@ -27,6 +27,7 @@
|
|||||||
#ifdef HAVE_ICU
|
#ifdef HAVE_ICU
|
||||||
#include "Util.hxx"
|
#include "Util.hxx"
|
||||||
#include "util/AllocatedArray.hxx"
|
#include "util/AllocatedArray.hxx"
|
||||||
|
#include "util/SpanCast.hxx"
|
||||||
|
|
||||||
#include <unicode/ucol.h>
|
#include <unicode/ucol.h>
|
||||||
#include <unicode/ustring.h>
|
#include <unicode/ustring.h>
|
||||||
@ -57,7 +58,7 @@ try {
|
|||||||
return {src};
|
return {src};
|
||||||
|
|
||||||
folded.SetSize(folded_length);
|
folded.SetSize(folded_length);
|
||||||
return UCharToUTF8(std::basic_string_view{folded.data(), folded.size()});
|
return UCharToUTF8(ToStringView(std::span{folded}));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error not implemented
|
#error not implemented
|
||||||
|
Loading…
Reference in New Issue
Block a user