mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Enable EXPLICIT_SYMBOL_EXPORT
This commit is contained in:
parent
83846b3861
commit
c14173f651
Notes:
github-actions[bot]
2025-06-30 16:51:52 +00:00
Author: https://github.com/ayeteadoe
Commit: c14173f651
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5215
Reviewed-by: https://github.com/ADKaster ✅
258 changed files with 952 additions and 941 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
namespace JS::Intl {
|
||||
|
||||
class Locale final : public Object {
|
||||
class JS_API Locale final : public Object {
|
||||
JS_OBJECT(Locale, Object);
|
||||
GC_DECLARE_ALLOCATOR(Locale);
|
||||
|
||||
|
@ -85,21 +85,21 @@ private:
|
|||
};
|
||||
|
||||
// Table 1: WeekInfo Record Fields, https://tc39.es/proposal-intl-locale-info/#table-locale-weekinfo-record
|
||||
struct WeekInfo {
|
||||
struct JS_API WeekInfo {
|
||||
u8 minimal_days { 0 }; // [[MinimalDays]]
|
||||
u8 first_day { 0 }; // [[FirstDay]]
|
||||
Vector<u8> weekend; // [[Weekend]]
|
||||
};
|
||||
|
||||
Optional<String> get_locale_variants(Unicode::LocaleID const&);
|
||||
JS_API Optional<String> get_locale_variants(Unicode::LocaleID const&);
|
||||
|
||||
GC::Ref<Array> calendars_of_locale(VM&, Locale const&);
|
||||
GC::Ref<Array> collations_of_locale(VM&, Locale const& locale);
|
||||
GC::Ref<Array> hour_cycles_of_locale(VM&, Locale const& locale);
|
||||
GC::Ref<Array> numbering_systems_of_locale(VM&, Locale const&);
|
||||
GC::Ref<Array> time_zones_of_locale(VM&, Locale const&);
|
||||
StringView weekday_to_string(StringView weekday);
|
||||
Optional<u8> string_to_weekday_value(StringView weekday);
|
||||
WeekInfo week_info_of_locale(Locale const&);
|
||||
JS_API GC::Ref<Array> calendars_of_locale(VM&, Locale const&);
|
||||
JS_API GC::Ref<Array> collations_of_locale(VM&, Locale const& locale);
|
||||
JS_API GC::Ref<Array> hour_cycles_of_locale(VM&, Locale const& locale);
|
||||
JS_API GC::Ref<Array> numbering_systems_of_locale(VM&, Locale const&);
|
||||
JS_API GC::Ref<Array> time_zones_of_locale(VM&, Locale const&);
|
||||
JS_API StringView weekday_to_string(StringView weekday);
|
||||
JS_API Optional<u8> string_to_weekday_value(StringView weekday);
|
||||
JS_API WeekInfo week_info_of_locale(Locale const&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue