1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:57:35 +00:00

LibLocale: Add a method to convert LanguageID to a String

This commit is contained in:
Timothy Flynn 2023-01-15 10:04:26 -05:00 committed by Linus Groh
parent b6b5ddeb3b
commit edfdade9e9
2 changed files with 19 additions and 10 deletions

View file

@ -8,7 +8,9 @@
#include <AK/CharacterTypes.h>
#include <AK/DeprecatedString.h>
#include <AK/Error.h>
#include <AK/Optional.h>
#include <AK/String.h>
#include <AK/StringView.h>
#include <AK/Variant.h>
#include <AK/Vector.h>
@ -17,6 +19,7 @@
namespace Locale {
struct LanguageID {
ErrorOr<String> to_string() const;
DeprecatedString to_deprecated_string() const;
bool operator==(LanguageID const&) const = default;