Lines Matching refs:Locale
80 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47()
83 return Locale::Invalid(); in FromBCP47()
89 return Locale::Invalid(); in FromBCP47()
115 return Locale(language.ToString(), script.ToString(), region.ToString()); in FromBCP47()
118 bool Locale::IsUnknown() const { in IsUnknown()
122 bool Locale::IsLocaleSupported(const Locale& locale, in IsLocaleSupported()
123 const std::vector<Locale>& supported_locales, in IsLocaleSupported()
131 for (const Locale& supported_locale : supported_locales) { in IsLocaleSupported()
154 bool Locale::IsAnyLocaleSupported(const std::vector<Locale>& locales, in IsAnyLocaleSupported()
155 const std::vector<Locale>& supported_locales, in IsAnyLocaleSupported()
163 for (const Locale& locale : locales) { in IsAnyLocaleSupported()
172 const Locale& locale) { in operator <<()
180 bool ParseLocales(StringPiece locales_list, std::vector<Locale>* locales) { in ParseLocales()
182 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales()