LibUnicode: Generate a list of available currencies

This commit is contained in:
Timothy Flynn 2022-01-30 16:51:29 -05:00 committed by Linus Groh
commit bb0f548614
Notes: sideshowbarker 2024-07-17 19:57:50 +09:00
3 changed files with 7 additions and 0 deletions

View file

@ -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 {}; }
}

View file

@ -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();
}