41#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
45inline namespace Literals
47inline namespace StringLiterals
49inline QString
operator""_s(
const char16_t *str,
size_t size)
noexcept
51 return QString::fromUtf16(
const_cast<char16_t *
>(str),
int(size));
53constexpr inline QLatin1String
operator""_L1(
const char *str,
size_t size)
noexcept
55 return QLatin1String{str, int(size)};
63#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
64inline QDebug operator<<(QDebug s,
const std::string &
string)
66 return s << QString::fromStdString(
string);