/external/libtextclassifier/native/utils/i18n/ |
D | locale-list_test.cc | 28 LocaleList locale_list = LocaleList::ParseFrom("en-US,zh-CN,ar,en"); in TEST() local 29 EXPECT_THAT(locale_list.GetLocales(), SizeIs(4)); in TEST() 30 EXPECT_THAT(locale_list.GetLocaleTags(), SizeIs(4)); in TEST() 31 EXPECT_EQ(locale_list.GetReferenceLocale(), "en-US"); in TEST() 35 LocaleList locale_list = LocaleList::ParseFrom(""); in TEST() local 36 EXPECT_THAT(locale_list.GetLocales(), SizeIs(0)); in TEST() 37 EXPECT_THAT(locale_list.GetLocaleTags(), SizeIs(0)); in TEST() 38 EXPECT_EQ(locale_list.GetReferenceLocale(), ""); in TEST() 42 LocaleList locale_list = LocaleList::ParseFrom("en,invalid"); in TEST() local 43 EXPECT_THAT(locale_list.GetLocales(), SizeIs(2)); in TEST() [all …]
|
/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map.cc | 37 std::vector<Locale> locale_list; in LocaleTagsToLocaleList() local 40 locale_list.emplace_back(locale); in LocaleTagsToLocaleList() 43 std::stable_sort(locale_list.begin(), locale_list.end(), in LocaleTagsToLocaleList() 45 return locale_list; in LocaleTagsToLocaleList() 79 for (const auto& [shard, locale_list] : shard_to_locale_data_) { in GetShard() 80 if (std::equal(locales.begin(), locales.end(), locale_list.begin())) { in GetShard() 88 std::vector<Locale> locale_list = LocaleTagsToLocaleList(locale_tags); in GetShard() local 89 return GetShard(locale_list); in GetShard() 93 std::vector<Locale> locale_list = LocaleTagsToLocaleList(locale_tags); in AddLocalTags() local 95 shard_to_locale_data_.insert({shard_id, locale_list}); in AddLocalTags()
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | formathelper.py | 133 locale_list = windows_lang_strings variable 135 locale_list = ['C'] variable 140 locale_list = [loc.split()[0] for loc in f.readlines() \ variable 143 locale_list = subprocess.Popen(["locale", "-a"], variable 146 locale_list = locale_list.decode() variable 150 locale_list = locale_list.decode('latin-1') variable 151 locale_list = locale_list.split('\n') variable 153 locale_list.remove('') 171 if x[0] in locale_list: 172 locale_list.remove(x[0]) [all …]
|
/external/angle/build/android/gyp/ |
D | create_ui_locale_resources.py | 77 locale_list = action_helpers.parse_gn_list(args.locale_list) 78 if not locale_list: 86 for locale in locale_list:
|
/external/cronet/build/android/gyp/ |
D | create_ui_locale_resources.py | 77 locale_list = action_helpers.parse_gn_list(args.locale_list) 78 if not locale_list: 86 for locale in locale_list:
|
/external/libtextclassifier/native/annotator/datetime/ |
D | grammar-parser.cc | 47 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() argument 51 reference_time_ms_utc, reference_timezone, locale_list, mode, in Parse() 57 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() argument 66 std::vector<Locale> locales = locale_list.GetLocales(); in Parse() 107 locale_list.GetReferenceLocale(), ungrounded_datetime); in Parse()
|
D | parser.h | 44 const std::string& reference_timezone, const LocaleList& locale_list, 51 const std::string& reference_timezone, const LocaleList& locale_list,
|
D | grammar-parser.h | 50 const std::string& reference_timezone, const LocaleList& locale_list, 57 const std::string& reference_timezone, const LocaleList& locale_list,
|
D | regex-parser.cc | 122 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() argument 126 reference_time_ms_utc, reference_timezone, locale_list, mode, in Parse() 175 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() argument 180 ParseAndExpandLocales(locale_list.GetLocaleTags()); in Parse() 185 anchor_start_end, locale_list.GetReferenceLocale(), in Parse()
|
D | regex-parser.h | 54 const std::string& reference_timezone, const LocaleList& locale_list, 61 const std::string& reference_timezone, const LocaleList& locale_list,
|
/external/cronet/build/ |
D | locale_tool.py | 1300 locale_list = self.TYPE_MAP[self.args.type]() 1302 print('[%s]' % ", ".join("'%s'" % loc for loc in locale_list)) 1304 print(' '.join(locale_list))
|
/external/angle/build/ |
D | locale_tool.py | 1300 locale_list = self.TYPE_MAP[self.args.type]() 1302 print('[%s]' % ", ".join("'%s'" % loc for loc in locale_list)) 1304 print(' '.join(locale_list))
|
/external/angle/build/android/gyp/util/ |
D | resource_utils.py | 173 def ToAndroidLocaleList(locale_list): argument 175 return sorted(ToAndroidLocaleName(locale) for locale in locale_list)
|
/external/cronet/build/android/gyp/util/ |
D | resource_utils.py | 173 def ToAndroidLocaleList(locale_list): argument 175 return sorted(ToAndroidLocaleName(locale) for locale in locale_list)
|
/external/libtextclassifier/native/annotator/ |
D | annotator.cc | 1711 LocaleList locale_list = LocaleList::ParseFrom(options.locales); in DatetimeClassifyText() local 1714 options.reference_timezone, locale_list, in DatetimeClassifyText() 3162 LocaleList locale_list = LocaleList::ParseFrom(locales); in DatetimeChunk() local 3165 reference_timezone, locale_list, mode, in DatetimeChunk()
|