Home
last modified time | relevance | path

Searched refs:languageCode (Results 1 – 25 of 50) sorted by relevance

12

/third_party/flutter/flutter/packages/flutter_localizations/test/
Dwidgets_test.dart550 // defaultLocaleChangedHandler chooses 1st matching supported locale.languageCode
765 Locale.fromSubtags(languageCode: 'de', countryCode: 'AT'),
766 Locale.fromSubtags(languageCode: 'fr'),]
788 Locale.fromSubtags(languageCode: 'zh'),]
794 Locale.fromSubtags(languageCode: 'en', countryCode: 'US'),
795 Locale.fromSubtags(languageCode: 'de'),
796 Locale.fromSubtags(languageCode: 'fr'),
797 Locale.fromSubtags(languageCode: 'de', countryCode: 'SW'),
798 Locale.fromSubtags(languageCode: 'it'),]
808 Locale.fromSubtags(languageCode: 'zh'),
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dlocale_test.dart26 expect(const Locale.fromSubtags().languageCode, 'und');
30 expect(const Locale.fromSubtags(languageCode: 'en').toLanguageTag(), 'en');
31 expect(const Locale.fromSubtags(languageCode: 'en').languageCode, 'en');
39 …expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').toLanguageTag(), 'es-419');
40 expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').toString(), 'es_419');
41 expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').languageCode, 'es');
42 expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').scriptCode, null);
43 expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').countryCode, '419');
45 …expect(const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN').toLangu…
46 …expect(const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN').toStrin…
[all …]
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java112 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForValidNumber() argument
113 String langStr = languageCode.getLanguage(); in getDescriptionForValidNumber()
115 String regionStr = languageCode.getCountry(); in getDescriptionForValidNumber()
139 ? areaDescription : getCountryNameForNumber(number, languageCode); in getDescriptionForValidNumber()
164 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, in getDescriptionForValidNumber() argument
171 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForValidNumber()
174 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
188 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForNumber() argument
193 return getCountryNameForNumber(number, languageCode); in getDescriptionForNumber()
195 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForNumber()
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dlocale_test.dart25 expect(const Locale.fromSubtags().languageCode, 'und');
29 expect(const Locale.fromSubtags(languageCode: 'en').toString(), 'en');
30 expect(const Locale.fromSubtags(languageCode: 'en').languageCode, 'en');
37 const Locale.fromSubtags(languageCode: 'es', countryCode: '419')
41 const Locale.fromSubtags(languageCode: 'es', countryCode: '419')
42 .languageCode,
45 const Locale.fromSubtags(languageCode: 'es', countryCode: '419')
51 languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN')
58 const Locale.fromSubtags(languageCode: 'en'),
60 const Locale.fromSubtags(languageCode: 'en', scriptCode: 'Latn')));
[all …]
/third_party/flutter/flutter/packages/flutter_localizations/test/material/
Dtranslations_test.dart159 … Locale locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: null);
169 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: 'HK');
174 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: 'TW');
179 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: null);
184 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: null);
189 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'US');
194 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN');
199 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'TW');
204 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'CN');
209 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'US');
[all …]
/third_party/typescript/tests/dets/cases/
DstatusManagementOfApplicationLevelVariables.ets21 @StorageProp('languageCode') languageCode: string = 'en'
25 this.label = (this.languageCode === 'zh') ? '数量' : 'Count'
35 Button(`language: ${this.languageCode}`)
37 if (AppStorage.Get<string>('languageCode') === 'zh') {
38 AppStorage.Set<string>('languageCode', 'en')
40 AppStorage.Set<string>('languageCode', 'zh')
42 this.label = (this.languageCode === 'zh') ? '数量' : 'Count'
55 Button(`更改@StorageProp修饰的变量:${this.languageCode}`).height(40).fontSize(14)
57 if (this.languageCode === 'zh') {
58 this.languageCode = 'en'
[all …]
DtargetEtsExample.ets98 @StorageProp('languageCode') languageCode: string = 'en'
/third_party/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapper.java71 public String getNameForValidNumber(PhoneNumber number, Locale languageCode) { in getNameForValidNumber() argument
72 String langStr = languageCode.getLanguage(); in getNameForValidNumber()
74 String regionStr = languageCode.getCountry(); in getNameForValidNumber()
89 public String getNameForNumber(PhoneNumber number, Locale languageCode) { in getNameForNumber() argument
92 return getNameForValidNumber(number, languageCode); in getNameForNumber()
107 public String getSafeDisplayName(PhoneNumber number, Locale languageCode) { in getSafeDisplayName() argument
111 return getNameForNumber(number, languageCode); in getSafeDisplayName()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DLocaleNameProviderICU.java32 public String getDisplayLanguage(String languageCode, Locale locale) { in getDisplayLanguage() argument
33 languageCode = AsciiUtil.toLowerString(languageCode); in getDisplayLanguage()
35 .languageDisplayName(languageCode); in getDisplayLanguage()
36 if (disp == null || disp.length() == 0 || disp.equals(languageCode)) { in getDisplayLanguage()
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dapp.dart568 /// 1. [Locale.languageCode], [Locale.scriptCode], and [Locale.countryCode]
569 /// 2. [Locale.languageCode] and [Locale.countryCode] only
570 /// 3. [Locale.languageCode] and [Locale.countryCode] only
571 /// 4. [Locale.languageCode] only
599 /// const Locale.fromSubtags(languageCode: 'zh'), // generic Chinese 'zh'
600 …/// const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), // generic simplified Chin…
601 …/// const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), // generic traditional Chi…
602 …/// const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN'), // 'zh_…
603 …/// const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'TW'), // 'zh_…
604 …/// const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'HK'), // 'zh_…
[all …]
/third_party/flutter/flutter/dev/tools/localization/
Dlocalizations_utils.dart18 this.languageCode,
32 /// be derived from the [languageCode] and [countryCode] if possible.
36 final String languageCode = codes[0];
59 switch (languageCode) {
89 originalString = languageCode;
97 languageCode: languageCode,
105 final String languageCode;
176 // When we assume scriptCode based on languageCode-only, we want this initial pass
192 …final LocaleInfo scriptLocale = LocaleInfo.fromString(locale.languageCode + '_' + locale.scriptCod…
Dgen_localizations.dart92 languageToScriptCodes[locale.languageCode] ??= <String>{};
93 languageToScriptCodes[locale.languageCode].add(locale.scriptCode);
96 final LocaleInfo key = LocaleInfo.fromString(locale.languageCode + '_' + locale.scriptCode);
100 languageToLocales[locale.languageCode] ??= <LocaleInfo>[];
101 languageToLocales[locale.languageCode].add(locale);
264 switch (locale.languageCode) {''');
470 return locale.languageCode == 'kn' ? generateEncodedString(value) : generateString(value);
/third_party/icu/icu4c/source/test/letest/
Dxmlreader.cpp181 le_int32 languageCode = -1; in readTestFile() local
193 languageCode = getLanguageCode(lang); in readTestFile()
195 if (languageCode < 0) { in readTestFile()
240 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
Dgendata.cpp204 le_int32 languageCode = -1; in main() local
220 languageCode = getLanguageCode(lang); in main()
222 if (languageCode < 0) { in main()
309 … engine = LayoutEngine::layoutEngineFactory(font, scriptCode, languageCode, typoFlags, leStatus); in main()
Dxmlreader.h20 le_int32 languageCode,
/third_party/icu/icu4c/source/test/perf/leperf/
Dxmlreader.cpp185 le_int32 languageCode = -1; in readTestFile() local
197 languageCode = getLanguageCode(lang); in readTestFile()
199 if (languageCode < 0) { in readTestFile()
244 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
Dxmlreader.h21 le_int32 languageCode,
/third_party/flutter/flutter/packages/flutter_localizations/lib/src/
Dmaterial_localizations.dart22 /// This class supports locales with the following [Locale.languageCode]s:
561 bool isSupported(Locale locale) => kMaterialSupportedLanguages.contains(locale.languageCode);
587 } else if (intl.DateFormat.localeExists(locale.languageCode)) {
588 fullYearFormat = intl.DateFormat.y(locale.languageCode);
589 mediumDateFormat = intl.DateFormat.MMMEd(locale.languageCode);
590 longDateFormat = intl.DateFormat.yMMMMEEEEd(locale.languageCode);
591 yearMonthFormat = intl.DateFormat.yMMMM(locale.languageCode);
604 } else if (intl.NumberFormat.localeExists(locale.languageCode)) {
605 decimalFormat = intl.NumberFormat.decimalPattern(locale.languageCode);
606 twoDigitZeroPaddedFormat = intl.NumberFormat('00', locale.languageCode);
Dwidgets_localizations.dart14 /// [Locale.languageCode] values, which are [TextDirection.rtl]:
29 final String language = locale.languageCode.toLowerCase();
/third_party/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DMappingFileProvider.java166 String languageCode = findBestMatchingLanguageCode(setOfLangs, language, script, region); in getFileName() local
167 if (languageCode.length() > 0) { in getFileName()
169 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
/third_party/flutter/flutter/examples/stocks/lib/
Dmain.dart30 bool isSupported(Locale locale) => locale.languageCode == 'es' || locale.languageCode == 'en';
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/ui/
Dwindow.dart145 /// both have the [languageCode] `he`, because `iw` is a deprecated language
201 /// each of languageCode, scriptCode and countryCode respectively.
209 String languageCode = 'und',
212 }) : assert(languageCode != null),
213 assert(languageCode != ''),
214 _languageCode = languageCode,
231 /// [languageCode] `he`, because `iw` is a deprecated language subtag that was
242 String get languageCode => _replaceDeprecatedLanguageSubtag(_languageCode);
245 static String _replaceDeprecatedLanguageSubtag(String languageCode) {
248 switch (languageCode) {
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DLocalePriorityList.java336 for (final ULocale languageCode : locales) {
337 add(languageCode, 1.0);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java349 for (final ULocale languageCode : locales) {
350 add(languageCode, 1.0);
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java66 String languageCode = "en"; // Default languageCode to English if nothing is entered. in doPost() local
85 languageCode = languageEntered; in doPost()
107 Locale geocodingLocale = new Locale(languageCode, regionCode); in doPost()

12