mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibUnicode: Generate a list of available currencies
This commit is contained in:
parent
481ced53d8
commit
bb0f548614
Notes:
sideshowbarker
2024-07-17 19:57:50 +09:00
Author: https://github.com/trflynn89
Commit: bb0f548614
Pull-request: https://github.com/SerenityOS/serenity/pull/12223
Reviewed-by: https://github.com/linusg ✅
3 changed files with 7 additions and 0 deletions
|
@ -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 {}; }
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue