2021-09-09 10:49:13 -04:00
|
|
|
/*
|
2022-01-31 13:07:22 -05:00
|
|
|
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
|
2021-09-09 10:49:13 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/HashMap.h>
|
|
|
|
#include <AK/Optional.h>
|
2022-01-30 16:51:29 -05:00
|
|
|
#include <AK/Span.h>
|
2021-09-09 10:49:13 -04:00
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
|
|
|
namespace Unicode {
|
|
|
|
|
|
|
|
struct CurrencyCode {
|
|
|
|
Optional<int> minor_unit {};
|
|
|
|
};
|
|
|
|
|
|
|
|
Optional<CurrencyCode> get_currency_code(StringView currency);
|
2022-01-30 16:51:29 -05:00
|
|
|
Span<StringView const> get_available_currencies();
|
2021-09-09 10:49:13 -04:00
|
|
|
|
|
|
|
}
|