• Home
  • Raw
  • Download

Lines Matching refs:locale

152 bool Locale::IsLocaleSupported(const Locale& locale,  in IsLocaleSupported()  argument
155 if (!locale.IsValid()) { in IsLocaleSupported()
158 if (locale.IsUnknown()) { in IsLocaleSupported()
168 supported_locale.Language() == locale.Language(); in IsLocaleSupported()
171 locale.Script().empty() || in IsLocaleSupported()
172 supported_locale.Script() == locale.Script(); in IsLocaleSupported()
175 locale.Region().empty() || in IsLocaleSupported()
176 supported_locale.Region() == locale.Region(); in IsLocaleSupported()
193 for (const Locale& locale : locales) { in IsAnyLocaleSupported() local
194 if (IsLocaleSupported(locale, supported_locales, default_value)) { in IsAnyLocaleSupported()
201 bool Locale::operator==(const Locale& locale) const { in operator ==()
202 return language_ == locale.language_ && region_ == locale.region_ && in operator ==()
203 script_ == locale.script_; in operator ==()
206 bool Locale::operator<(const Locale& locale) const { in operator <()
208 std::tie(locale.language_, locale.region_, locale.script_); in operator <()
211 bool Locale::operator!=(const Locale& locale) const { in operator !=()
212 return !(*this == locale); in operator !=()
216 const Locale& locale) { in operator <<() argument
217 return stream << "Locale(language=" << locale.Language() in operator <<()
218 << ", script=" << locale.Script() in operator <<()
219 << ", region=" << locale.Region() in operator <<()
220 << ", is_valid=" << locale.IsValid() in operator <<()
221 << ", is_unknown=" << locale.IsUnknown() << ")"; in operator <<()
226 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales() local
227 if (!locale.IsValid()) { in ParseLocales()
231 locales->push_back(locale); in ParseLocales()