diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-30 16:51:29 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-31 00:32:41 +0000 |
commit | bb0f548614ba1b788a2d9f3e5ce7d99d3228e3be (patch) | |
tree | b8d3f95dbad68cc26d003b053a6e2b3c170ead13 /Userland/Libraries/LibUnicode | |
parent | 481ced53d85444280039ec9c33834eb98f16a5b6 (diff) | |
download | serenity-bb0f548614ba1b788a2d9f3e5ce7d99d3228e3be.zip |
LibUnicode: Generate a list of available currencies
Diffstat (limited to 'Userland/Libraries/LibUnicode')
-rw-r--r-- | Userland/Libraries/LibUnicode/CurrencyCode.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibUnicode/CurrencyCode.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/CurrencyCode.cpp b/Userland/Libraries/LibUnicode/CurrencyCode.cpp index e19cf8da49..cdbf4af44f 100644 --- a/Userland/Libraries/LibUnicode/CurrencyCode.cpp +++ b/Userland/Libraries/LibUnicode/CurrencyCode.cpp @@ -203,4 +203,6 @@ Optional<CurrencyCode> get_currency_code(StringView currency) return currency_codes.get(currency); } +Span<StringView const> __attribute__((weak)) get_available_currencies() { return {}; } + } diff --git a/Userland/Libraries/LibUnicode/CurrencyCode.h b/Userland/Libraries/LibUnicode/CurrencyCode.h index 1eb831e701..773eb54616 100644 --- a/Userland/Libraries/LibUnicode/CurrencyCode.h +++ b/Userland/Libraries/LibUnicode/CurrencyCode.h @@ -8,6 +8,7 @@ #include <AK/HashMap.h> #include <AK/Optional.h> +#include <AK/Span.h> #include <AK/StringView.h> namespace Unicode { @@ -17,5 +18,6 @@ struct CurrencyCode { }; Optional<CurrencyCode> get_currency_code(StringView currency); +Span<StringView const> get_available_currencies(); } |