LibUnicode+LibJS: Move Unicode::get_available_currencies() to Locale.h

This is generated by GenerateLocaleData, which will soon be in the
Locale namespace. Move it out of CurrencyCode.h, as that will continue
to live in the Unicode namespace.
This commit is contained in:
Timothy Flynn 2022-09-02 11:27:31 -04:00 committed by Tim Flynn
parent 1e0276f541
commit 6c7b05a0ff
Notes: sideshowbarker 2024-07-17 07:30:14 +09:00
5 changed files with 2 additions and 4 deletions

View file

@ -20,7 +20,6 @@
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
#include <LibJS/Runtime/Intl/SegmenterConstructor.h>
#include <LibJS/Runtime/Temporal/TimeZone.h>
#include <LibUnicode/CurrencyCode.h>
#include <LibUnicode/DateTimeFormat.h>
#include <LibUnicode/Locale.h>
#include <LibUnicode/NumberFormat.h>

View file

@ -203,6 +203,4 @@ Optional<CurrencyCode> get_currency_code(StringView currency)
return currency_codes.get(currency);
}
Span<StringView const> __attribute__((weak)) get_available_currencies() { return {}; }
}

View file

@ -18,6 +18,5 @@ struct CurrencyCode {
};
Optional<CurrencyCode> get_currency_code(StringView currency);
Span<StringView const> get_available_currencies();
}

View file

@ -771,6 +771,7 @@ Span<StringView const> __attribute__((weak)) get_available_calendars() { return
Span<StringView const> __attribute__((weak)) get_available_collation_case_orderings() { return {}; }
Span<StringView const> __attribute__((weak)) get_available_collation_numeric_orderings() { return {}; }
Span<StringView const> __attribute__((weak)) get_available_collation_types() { return {}; }
Span<StringView const> __attribute__((weak)) get_available_currencies() { return {}; }
Span<StringView const> __attribute__((weak)) get_available_hour_cycles() { return {}; }
Span<StringView const> __attribute__((weak)) get_available_number_systems() { return {}; }
Optional<Locale> __attribute__((weak)) locale_from_string(StringView) { return {}; }

View file

@ -150,6 +150,7 @@ Span<StringView const> get_available_calendars();
Span<StringView const> get_available_collation_case_orderings();
Span<StringView const> get_available_collation_numeric_orderings();
Span<StringView const> get_available_collation_types();
Span<StringView const> get_available_currencies();
Span<StringView const> get_available_hour_cycles();
Span<StringView const> get_available_number_systems();