LibJS: Move CanonicalCodeForDisplayNames to Intl.DisplayNames

Intl.DisplayNames was the first Intl object implemented, and at that
point all AOs were just put into the main Intl AO header. But AOs that
belong to specific objects belong in that object's header. So this moves
CanonicalCodeForDisplayNames to the Intl.DisplayNames header.
This commit is contained in:
Timothy Flynn 2021-09-11 07:50:54 -04:00 committed by Linus Groh
commit 094c390fb1
Notes: sideshowbarker 2024-07-18 04:10:27 +09:00
5 changed files with 70 additions and 68 deletions

View file

@ -50,6 +50,5 @@ Optional<int> get_number_option(GlobalObject& global_object, Object& options, Pr
Vector<PatternPartition> partition_pattern(StringView pattern);
String insert_unicode_extension_and_canonicalize(Unicode::LocaleID locale_id, Unicode::LocaleExtension extension);
LocaleResult resolve_locale(Vector<String> const& requested_locales, LocaleOptions const& options, Vector<StringView> const& relevant_extension_keys);
Value canonical_code_for_display_names(GlobalObject&, DisplayNames::Type type, StringView code);
}