Lines Matching full:extension
184 parsedResult.extension = result.substr(foundExtension, extensionEnd - foundExtension); in HandleLocale()
348 // with all Unicode locale extension sequences removed. in LookupMatcher()
358 …// 2. c. ii. 1. Let extension be the String value consisting of the first substring of locale tha… in LookupMatcher()
359 // Unicode locale extension sequence. in LookupMatcher()
360 if (!parsedResult.extension.empty()) { in LookupMatcher()
361 result.extension = parsedResult.extension; in LookupMatcher()
363 // 2. c. ii. 2. Set result.[[extension]] to extension. in LookupMatcher()
364 std::string res = result.locale + result.extension; in LookupMatcher()
440 …t noExtensionsLocale be the String value that is locale with all Unicode locale extension sequences in LookupSupportedLocales()
692 // 9.2.5 UnicodeExtensionValue ( extension, key )
693 std::string JSLocale::UnicodeExtensionValue(const std::string extension, const std::string key) in UnicodeExtensionValue() argument
696 // 2. Let size be the number of elements in extension. in UnicodeExtensionValue()
698 size_t size = extension.size(); in UnicodeExtensionValue()
701 // 4. Let pos be Call(%StringProto_indexOf%, extension, « searchValue »). in UnicodeExtensionValue()
702 size_t pos = extension.find(searchValue); in UnicodeExtensionValue()
715 // i. Let e be Call(%StringProto_indexOf%, extension, « "-", k »). in UnicodeExtensionValue()
716 size_t e = extension.find("-", k); in UnicodeExtensionValue()
742 …// f. Return the String value equal to the substring of extension consisting of the code units at … in UnicodeExtensionValue()
744 std::string result = extension.substr(start, end - start); in UnicodeExtensionValue()
749 // 7. Let pos be Call(%StringProto_indexOf%, extension, « searchValue »). in UnicodeExtensionValue()
750 pos = extension.find(searchValue); in UnicodeExtensionValue()
822 // h. If r has an [[extension]] field, then in ResolveLocale()
826 std::string extension = foundLocale.substr(found + INTL_INDEX_ONE); in ResolveLocale() local
828 // i. Let requestedValue be UnicodeExtensionValue(r.[[extension]], key). in ResolveLocale()
829 std::string requestedValue = UnicodeExtensionValue(extension, key); in ResolveLocale()