mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
19 lines
409 B
C++
19 lines
409 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#define AK_DONT_REPLACE_STD
|
|
|
|
#include "Utilities.h"
|
|
|
|
AK::String akstring_from_qstring(QString const& qstring)
|
|
{
|
|
return AK::String(qstring.toUtf8().data());
|
|
}
|
|
|
|
QString qstring_from_akstring(AK::String const& akstring)
|
|
{
|
|
return QString::fromUtf8(akstring.characters(), akstring.length());
|
|
}
|