On Sun, Oct 12, 2025 at 1:35 PM 'LN Liberda' via icu-support
<
icu-s...@unicode.org> wrote:
> Since std::u16string_view APIs were added to UnicodeString (ICU-22843),
> they seem to be preferred by clang over the earlier APIs. For example,
> operator= now uses the other UnicodeString via std::u16string_view,
> rather than use the earlier assignment operator.
I'm unsure which operator= you're referring to as "the earlier
assignment operator". UnicodeString currently has the following
assignment operators:
operator=(const UnicodeString &srcText)
operator=(const S &src)
operator=(UnicodeString &&src) noexcept
operator=(char16_t ch)
operator=(UChar32 ch)
The new one would be the templated operator=(const S &src) but which
one is it that doesn't get called? Under what circumstances? Could you
maybe provide a snippet of example code that shows the problem?
--
Fredrik Roubert
rou...@google.com