Lines Matching defs:locales

187                    Handle<Object> locales, Handle<Object> options,
193 return T::New(isolate, map, locales, options, method_name);
583 std::set<std::string> locales;
597 locales.insert(locale);
601 locales.insert(shortened_locale);
604 return locales;
776 Isolate* isolate, Handle<Object> locales, bool only_return_one_result) {
777 // 1. If locales is undefined, then
778 if (locales->IsUndefined(isolate)) {
784 // 3. If Type(locales) is String or locales has an [[InitializedLocale]]
786 if (locales->IsJSLocale()) {
790 seen.push_back(JSLocale::ToString(Handle<JSLocale>::cast(locales)));
793 if (locales->IsString()) {
794 // 3a. Let O be CreateArrayFromList(« locales »).
798 if (!CanonicalizeLanguageTag(isolate, locales).To(&canonicalized_tag)) {
805 // 4a. Let O be ? ToObject(locales).
808 Object::ToObject(isolate, locales),
872 Handle<Object> locales) {
874 if (!CanonicalizeLocaleList(isolate, locales, true).To(&requested_locales)) {
902 // mapping of ASCII range characters are different in those locales.
918 IsolateT* isolate, Handle<Object> locales, Handle<Object> options) {
923 // Lists all of the available locales that are statically known to fulfill
927 // Locale entries are roughly sorted s.t. common locales come first.
937 if (locales->IsUndefined(isolate)) {
948 if (!locales->IsString()) return CompareStringsOptions::kNone;
950 Handle<String> locales_string = Handle<String>::cast(locales);
968 Handle<Object> locales, Handle<Object> options, const char* method_name) {
969 // We only cache the instance when locales is a string/undefined and
973 (locales->IsString() || locales->IsUndefined(isolate)) &&
975 // We may be able to take the fast path, depending on the `locales` and
978 CompareStringsOptionsFor(isolate, locales, options);
980 // Both locales and options are undefined, check the cache.
983 Isolate::ICUObjectCacheType::kDefaultCollator, locales));
998 New<JSCollator>(isolate, constructor, locales, options, method_name);
1002 Isolate::ICUObjectCacheType::kDefaultCollator, locales,
1461 Handle<Object> locales,
1468 // We only cache the instance when locales is a string/undefined and
1471 bool can_cache = (locales->IsString() || locales->IsUndefined(isolate)) &&
1477 Isolate::ICUObjectCacheType::kDefaultNumberFormat, locales));
1490 // 2. Let numberFormat be ? Construct(%NumberFormat%, « locales, options »).
1493 New<JSNumberFormat>(isolate, constructor, locales, options, method_name),
1498 Isolate::ICUObjectCacheType::kDefaultNumberFormat, locales,
1767 // Privateuse or grandfathered locales have no extension sequences.
1895 // be a List as returned by CanonicalizeLocaleList, against the locales in
1898 // results that a typical user of the requested locales would perceive
2023 Handle<Object> locales) {
2024 // 1. Let ll be ? CanonicalizeLocaleList(locales).
2026 CanonicalizeLocaleList(isolate, locales, false);
2218 const std::set<std::string>& available_locales, Handle<Object> locales,
2222 // Let requestedLocales be ? CanonicalizeLocaleList(locales).
2224 CanonicalizeLocaleList(isolate, locales, false);