summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode/CurrencyCode.h
blob: 48e97ac8641c07c61ab3114f7019484e3a40ef20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/HashMap.h>
#include <AK/Optional.h>
#include <AK/Span.h>
#include <AK/StringView.h>

namespace Unicode {

struct CurrencyCode {
    Optional<int> minor_unit {};
};

Optional<CurrencyCode> get_currency_code(StringView currency);
Span<StringView const> get_available_currencies();

}