
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
21 lines
392 B
C++
21 lines
392 B
C++
/*
|
|
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/DeprecatedString.h>
|
|
#include <AK/Forward.h>
|
|
#include <LibGUI/GML/AST.h>
|
|
#include <LibGUI/GML/Parser.h>
|
|
|
|
namespace GUI::GML {
|
|
|
|
inline ErrorOr<DeprecatedString> format_gml(StringView string)
|
|
{
|
|
return TRY(parse_gml(string))->to_deprecated_string();
|
|
}
|
|
|
|
}
|