Lines Matching refs:locale
122 bool Locale::IsLocaleSupported(const Locale& locale, in IsLocaleSupported() argument
125 if (!locale.IsValid()) { in IsLocaleSupported()
128 if (locale.IsUnknown()) { in IsLocaleSupported()
138 supported_locale.Language() == locale.Language(); in IsLocaleSupported()
141 locale.Script().empty() || in IsLocaleSupported()
142 supported_locale.Script() == locale.Script(); in IsLocaleSupported()
145 locale.Region().empty() || in IsLocaleSupported()
146 supported_locale.Region() == locale.Region(); in IsLocaleSupported()
163 for (const Locale& locale : locales) { in IsAnyLocaleSupported() local
164 if (IsLocaleSupported(locale, supported_locales, default_value)) { in IsAnyLocaleSupported()
172 const Locale& locale) { in operator <<() argument
173 return stream << "Locale(language=" << locale.Language() in operator <<()
174 << ", script=" << locale.Script() in operator <<()
175 << ", region=" << locale.Region() in operator <<()
176 << ", is_valid=" << locale.IsValid() in operator <<()
177 << ", is_unknown=" << locale.IsUnknown() << ")"; in operator <<()
182 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales() local
183 if (!locale.IsValid()) { in ParseLocales()
187 locales->push_back(locale); in ParseLocales()