Преглед изворни кода

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.
Timothy Flynn пре 2 година
родитељ
комит
6c7b05a0ff

+ 0 - 1
Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp

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

+ 0 - 2
Userland/Libraries/LibUnicode/CurrencyCode.cpp

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

+ 0 - 1
Userland/Libraries/LibUnicode/CurrencyCode.h

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

+ 1 - 0
Userland/Libraries/LibUnicode/Locale.cpp

@@ -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_case_orderings() { return {}; }
 Span<StringView const> __attribute__((weak)) get_available_collation_numeric_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_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_hour_cycles() { return {}; }
 Span<StringView const> __attribute__((weak)) get_available_number_systems() { return {}; }
 Span<StringView const> __attribute__((weak)) get_available_number_systems() { return {}; }
 Optional<Locale> __attribute__((weak)) locale_from_string(StringView) { return {}; }
 Optional<Locale> __attribute__((weak)) locale_from_string(StringView) { return {}; }

+ 1 - 0
Userland/Libraries/LibUnicode/Locale.h

@@ -150,6 +150,7 @@ Span<StringView const> get_available_calendars();
 Span<StringView const> get_available_collation_case_orderings();
 Span<StringView const> get_available_collation_case_orderings();
 Span<StringView const> get_available_collation_numeric_orderings();
 Span<StringView const> get_available_collation_numeric_orderings();
 Span<StringView const> get_available_collation_types();
 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_hour_cycles();
 Span<StringView const> get_available_number_systems();
 Span<StringView const> get_available_number_systems();