ladybird/Userland/Libraries/LibUnicode/CurrencyCode.h
Timothy Flynn e6334cb856 LibUnicode: Add some data related to currency codes
This data is published under ISO-4217 as an XML file. Since we can't
parse XML files yet, and the data isn't very large, it was translated to
C++ manually here.
2021-09-11 11:05:50 +01:00

21 lines
340 B
C++

/*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/HashMap.h>
#include <AK/Optional.h>
#include <AK/StringView.h>
namespace Unicode {
struct CurrencyCode {
Optional<int> minor_unit {};
};
Optional<CurrencyCode> get_currency_code(StringView currency);
}