/third_party/boost/libs/locale/src/std/ |
D | numeric.cpp | 22 namespace locale { namespace 28 time_put_from_base(std::locale const &base, size_t refs = 0) : in time_put_from_base() 42 std::locale base_; 47 utf8_time_put_from_wide(std::locale const &base, size_t refs = 0) : in utf8_time_put_from_wide() 65 std::locale base_; 70 utf8_numpunct_from_wide(std::locale const &base,size_t refs = 0) : std::numpunct<char>(refs) in utf8_numpunct_from_wide() 140 …utf8_moneypunct_from_wide(std::locale const &base,size_t refs = 0) : std::moneypunct<char,Intl>(re… in utf8_moneypunct_from_wide() 293 std::locale create_basic_parsing(std::locale const &in,std::string const &locale_name) in create_basic_parsing() 295 std::locale tmp = std::locale(in,new std::numpunct_byname<CharType>(locale_name.c_str())); in create_basic_parsing() 296 tmp = std::locale(tmp,new std::moneypunct_byname<CharType,true>(locale_name.c_str())); in create_basic_parsing() [all …]
|
D | converter.cpp | 27 namespace locale { namespace 38 std_converter(std::locale const &base,size_t refs = 0) : in std_converter() 66 std::locale base_; 73 utf8_converter(std::locale const &base,size_t refs = 0) : in utf8_converter() 102 std::locale base_; 105 std::locale create_convert( std::locale const &in, in create_convert() 114 … std::locale base(std::locale::classic(),new std::ctype_byname<wchar_t>(locale_name.c_str())); in create_convert() 115 return std::locale(in,new utf8_converter(base)); in create_convert() 117 … std::locale base(std::locale::classic(),new std::ctype_byname<char>(locale_name.c_str())); in create_convert() 118 return std::locale(in,new std_converter<char>(base)); in create_convert() [all …]
|
/third_party/gettext/gettext-runtime/intl/ |
D | localcharset.c | 579 const char locale[17+1]; member 855 const char *locale; in locale_charset() local 858 locale = getenv ("LC_ALL"); in locale_charset() 859 if (locale == NULL || locale[0] == '\0') in locale_charset() 861 locale = getenv ("LC_CTYPE"); in locale_charset() 862 if (locale == NULL || locale[0] == '\0') in locale_charset() 863 locale = getenv ("LANG"); in locale_charset() 865 if (locale != NULL && locale[0] != '\0') in locale_charset() 869 const char *dot = strchr (locale, '.'); in locale_charset() 953 const char *locale; in locale_charset() local [all …]
|
/third_party/flutter/flutter/packages/flutter_localizations/test/material/ |
D | translations_test.dart | 12 final Locale locale = Locale(language); 14 expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue); 16 …inal MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale); 159 … Locale locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: null); 160 expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue); 161 MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale); 164 locale = const Locale('zh', 'TW'); 165 expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue); 166 localizations = await GlobalMaterialLocalizations.delegate.load(locale); 169 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: 'HK'); [all …]
|
/third_party/icu/tools/colprobe/ |
D | doComparisonTable.pl | 12 my $locale = $ARGV[0]; 15 my $long_name = `/home/weiv/src/icu/source/extra/colprobe/longname $locale`; 17 my $pageTitle = $locale." collation"; 18 my $filename = $locale.".html"; 41 <p><b><font color="#FF0000">Collation:</font> $locale ($long_name) <a href="http://oss.software.ibm… 51 my $nameCommon = $dirCommon."/".$locale."_collation.html"; 54 my $loc = $locale; 57 $locale =~ /_/; 71 my $refLinux = $dirLinux."/".$locale.".utf8_default_raw.html"; 72 my $rawLinux = $dirLinux."/".$locale.".utf8_raw.html"; [all …]
|
D | createComparisonTables.pl | 11 my $locale = $ARGV[0]; 14 my $long_name = `/home/weiv/src/icu/source/extra/colprobe/longname $locale`; 15 my $pageTitle = $locale."_collation"; 39 <p><b><font color="#FF0000">Collation:</font> $locale ($long_name) <a href="http://oss.software.ibm… 49 my $nameCommon = $dirCommon."/".$locale."_collation.html"; 55 $locale =~ /_/; 59 …on\">COMMON (<a href=\"$refCommon\">UCA</a> <a href=\"../$dirCommon/xml/$locale.xml\">xml</a>)</th… 62 my $refLinux = $dirLinux."/".$locale.".utf8_default_raw.html"; 63 my $rawLinux = $dirLinux."/".$locale.".utf8_raw.html"; 64 my $defLinux = $dirLinux."/".$locale; [all …]
|
/third_party/python/Lib/test/ |
D | test_locale.py | 5 import locale 31 oldlocale = locale.setlocale(locale.LC_NUMERIC) 34 locale.setlocale(locale.LC_NUMERIC, tloc) 35 except locale.Error: 43 locale.setlocale(locale.LC_NUMERIC, oldlocale) 46 oldlocale = locale.setlocale(self.locale_type) 47 self.addCleanup(locale.setlocale, self.locale_type, oldlocale) 48 locale.setlocale(self.locale_type, self.enUS_locale) 59 locale._override_localeconv = self.cooked_values 62 locale._override_localeconv = {} [all …]
|
/third_party/boost/boost/locale/ |
D | conversion.hpp | 20 namespace locale { namespace 58 class BOOST_LOCALE_DECL converter: public converter_base, public std::locale::facet { 61 static std::locale::id id; 64 converter(size_t refs = 0) : std::locale::facet(refs) in converter() 73 std::locale::id& __get_id (void) const { return id; } in __get_id() 79 class BOOST_LOCALE_DECL converter<char> : public converter_base, public std::locale::facet { 81 static std::locale::id id; 83 converter(size_t refs = 0) : std::locale::facet(refs) in converter() 88 std::locale::id& __get_id (void) const { return id; } in __get_id() 93 … class BOOST_LOCALE_DECL converter<wchar_t> : public converter_base, public std::locale::facet { [all …]
|
/third_party/boost/libs/locale/test/ |
D | test_generator.cpp | 16 bool has_message(std::locale const &l) in has_message() 18 return std::has_facet<boost::locale::message_format<char> >(l); in has_message() 21 struct test_facet : public std::locale::facet { 22 test_facet() : std::locale::facet(0) {} in test_facet() 23 static std::locale::id id; 26 std::locale::id test_facet::id; 32 boost::locale::generator g; in main() 33 std::locale l=g("en_US.UTF-8"); in main() 36 g.categories(g.categories() ^ boost::locale::message_facet); in main() 39 g.categories(g.categories() | boost::locale::message_facet); in main() [all …]
|
D | test_winapi_convert.cpp | 26 void test_one(std::locale const &l,std::string src,std::string tgtl,std::string tgtu) in test_one() 28 …TEST(boost::locale::to_upper(to_correct_string<CharType>(src,l),l) == to_correct_string<CharType>(… in test_one() 29 …TEST(boost::locale::to_lower(to_correct_string<CharType>(src,l),l) == to_correct_string<CharType>(… in test_one() 30 …TEST(boost::locale::fold_case(to_correct_string<CharType>(src,l),l) == to_correct_string<CharType>… in test_one() 36 boost::locale::generator gen; in test_char() 41 std::locale l = gen("en_US.UTF-8"); in test_char() 59 void test_normc(std::basic_string<Char> orig,std::basic_string<Char> normal,boost::locale::norm_typ… in test_normc() 61 std::locale l = boost::locale::generator().generate("en_US.UTF-8"); in test_normc() 62 TEST(boost::locale::normalize(orig,type,l)==normal); in test_normc() 63 TEST(boost::locale::normalize(orig.c_str(),type,l)==normal); in test_normc() [all …]
|
/third_party/boost/libs/date_time/test/gregorian/ |
D | testdate_facet_new.cpp | 24 const std::locale& locale = std::locale::classic()) in teststreaming() argument 27 ss.imbue(locale); in teststreaming() 115 std::cout.imbue(std::locale(std::locale::classic(), datefacet)); in main() 117 std::locale(std::locale::classic(), datefacet)); in main() 126 std::locale(std::locale::classic(), datefacet)); in main() 134 std::locale(std::locale::classic(), datefacet)); in main() 142 std::locale(std::locale::classic(), datefacet)); in main() 150 std::locale(std::locale::classic(), datefacet)); in main() 158 std::locale(std::locale::classic(), datefacet)); in main() 166 std::locale(std::locale::classic(), datefacet)); in main() [all …]
|
/third_party/python/Tools/i18n/ |
D | makelocalealias.py | 9 import locale 11 _locale = locale 32 locale, alias = line.split() 40 if locale[-1] == ':': 41 locale = locale[:-1] 43 locale = locale.lower() 45 if len(locale) == 1 and locale != 'c': 48 if '.' in locale: 49 lang, encoding = locale.split('.')[:2] 52 locale = lang + '.' + encoding [all …]
|
/third_party/glib/glib/libcharset/ |
D | localcharset.c | 298 const char *locale; in _g_locale_charset_raw() local 301 locale = getenv ("LC_ALL"); in _g_locale_charset_raw() 302 if (locale == NULL || locale[0] == '\0') in _g_locale_charset_raw() 304 locale = getenv ("LC_CTYPE"); in _g_locale_charset_raw() 305 if (locale == NULL || locale[0] == '\0') in _g_locale_charset_raw() 306 locale = getenv ("LANG"); in _g_locale_charset_raw() 308 if (locale != NULL && locale[0] != '\0') in _g_locale_charset_raw() 312 const char *dot = strchr (locale, '.'); in _g_locale_charset_raw() 341 const char *locale = NULL; in _g_locale_charset_raw() local 348 locale = setlocale (LC_CTYPE, NULL); in _g_locale_charset_raw() [all …]
|
/third_party/boost/libs/locale/src/shared/ |
D | ids.cpp | 17 namespace locale { namespace 19 std::locale::id info::id; 20 std::locale::id calendar_facet::id; 22 std::locale::id converter<char>::id; 23 std::locale::id base_message_format<char>::id; 25 std::locale::id converter<wchar_t>::id; 26 std::locale::id base_message_format<wchar_t>::id; 30 std::locale::id converter<char16_t>::id; 31 std::locale::id base_message_format<char16_t>::id; 37 std::locale::id converter<char32_t>::id; [all …]
|
/third_party/boost/libs/date_time/test/posix_time/ |
D | testtime_facet.cpp | 22 const std::locale& locale = std::locale::classic()) in teststreaming() argument 25 ss.imbue(locale); in teststreaming() 80 ss.imbue(std::locale(ss.getloc(), f)); in main() 167 ss.imbue(std::locale(ss.getloc(), f)); in main() 228 sstr.imbue(std::locale(std::locale::classic(), pFacet)); in main() 248 std::locale(std::locale::classic(), timefacet)); in main() 255 std::locale(std::locale::classic(), timefacet)); in main() 262 std::locale(std::locale::classic(), timefacet)); in main() 268 std::locale(std::locale::classic(), timefacet)); in main() 275 std::locale(std::locale::classic(), timefacet)); in main() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | LocaleDataTest.java | 52 ULocale locale = availableLocales[i]; in TestPaperSize() local 53 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize() 55 String lang = locale.getLanguage(); in TestPaperSize() 59 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize() 68 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize() 73 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 77 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize() 82 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 90 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local 91 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem() [all …]
|
/third_party/node/deps/npm/node_modules/y18n/ |
D | index.js | 10 this.locale = opts.locale || 'en' 29 if (!this.cache[this.locale]) this._readLocaleFile() 32 if (!this.cache[this.locale][str] && this.updateFiles) { 33 this.cache[this.locale][str] = str 38 this._enqueueWrite([this.directory, this.locale, cb]) 43 return util.format.apply(util, [this.cache[this.locale][str] || str].concat(args)) 70 var locale = work[1] 73 var languageFile = this._resolveLocaleFile(directory, locale) 74 var serializedLocale = JSON.stringify(this.cache[locale], null, 2) 85 var languageFile = this._resolveLocaleFile(this.directory, this.locale) [all …]
|
/third_party/boost/libs/locale/src/icu/ |
D | all_generator.hpp | 14 namespace locale { namespace 17 … std::locale create_convert(std::locale const &,cdata const &,character_facet_type); // ok 18 … std::locale create_collate(std::locale const &,cdata const &,character_facet_type); // ok 19 … std::locale create_formatting(std::locale const &,cdata const &,character_facet_type); // ok 20 … std::locale create_parsing(std::locale const &,cdata const &,character_facet_type); // ok 21 …std::locale create_codecvt(std::locale const &,std::string const &encoding,character_facet_type); … 22 … std::locale create_boundary(std::locale const &,cdata const &,character_facet_type); // ok 23 std::locale create_calendar(std::locale const &,cdata const &); // ok
|
/third_party/boost/boost/log/detail/ |
D | code_conversion.hpp | 41 … std::size_t len, std::string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 43 …std::size_t len, std::wstring& str2, std::size_t max_size, std::locale const& loc = std::locale()); 48 … std::size_t len, std::string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 50 …d::size_t len, std::u16string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 52 …std::size_t len, std::wstring& str2, std::size_t max_size, std::locale const& loc = std::locale()); 56 … std::size_t len, std::string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 58 …d::size_t len, std::u32string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 60 …std::size_t len, std::wstring& str2, std::size_t max_size, std::locale const& loc = std::locale()); 64 …d::size_t len, std::u32string& str2, std::size_t max_size, std::locale const& loc = std::locale()); 66 …d::size_t len, std::u16string& str2, std::size_t max_size, std::locale const& loc = std::locale()); [all …]
|
/third_party/boost/boost/locale/boundary/ |
D | facets.hpp | 25 namespace locale { namespace 100 class BOOST_LOCALE_DECL boundary_indexing : public std::locale::facet { 105 boundary_indexing(size_t refs=0) : std::locale::facet(refs) in boundary_indexing() 119 static std::locale::id id; 122 std::locale::id& __get_id (void) const { return id; } in __get_id() 129 class BOOST_LOCALE_DECL boundary_indexing<char> : public std::locale::facet { 131 boundary_indexing(size_t refs=0) : std::locale::facet(refs) in boundary_indexing() 135 static std::locale::id id; 137 std::locale::id& __get_id (void) const { return id; } in __get_id() 142 class BOOST_LOCALE_DECL boundary_indexing<wchar_t> : public std::locale::facet { [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleDataTest.java | 49 ULocale locale = availableLocales[i]; in TestPaperSize() local 50 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize() 52 String lang = locale.getLanguage(); in TestPaperSize() 56 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize() 65 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize() 70 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 74 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize() 79 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 87 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local 88 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem() [all …]
|
/third_party/boost/boost/algorithm/string/ |
D | classification.hpp | 44 is_classified(std::ctype_base::mask Type, const std::locale& Loc=std::locale()) in is_classified() 57 is_space(const std::locale& Loc=std::locale()) in is_space() 70 is_alnum(const std::locale& Loc=std::locale()) in is_alnum() 83 is_alpha(const std::locale& Loc=std::locale()) in is_alpha() 96 is_cntrl(const std::locale& Loc=std::locale()) in is_cntrl() 109 is_digit(const std::locale& Loc=std::locale()) in is_digit() 122 is_graph(const std::locale& Loc=std::locale()) in is_graph() 135 is_lower(const std::locale& Loc=std::locale()) in is_lower() 148 is_print(const std::locale& Loc=std::locale()) in is_print() 161 is_punct(const std::locale& Loc=std::locale()) in is_punct() [all …]
|
/third_party/boost/libs/locale/doc/ |
D | faq.txt | 16 …er: You probably try to use incorrect \c std::locale object. All Boost.Locale tools relay on \c st… 17 …The locale object should be generated with \ref boost::locale::generator "generator" class and the… 18 …the function or alternatively global locale should be set using \c std::locale::global() function … 19 global locale (and default created one) would have required facets to use. 20 - \anchor faq_number <b>I had installed global locale and try to write something to stream but st… 23 #include <boost/locale.hpp> 27 boost::locale::generator gen; 28 std::locale::global(gen("")); 29 std::cout << boost::locale::as::date << std::time(0) << std::endl; 34 …\b Answer: You forget to imbue the locale to the stream. Changing the global locale does not affec… [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeUnitFormat.java | 90 private ULocale locale; field in TimeUnitFormat 121 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument 122 this(locale, FULL_NAME); in TimeUnitFormat() 131 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument 132 this(locale, FULL_NAME); in TimeUnitFormat() 144 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument 145 super(locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat() 154 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument 155 this(locale, style); in TimeUnitFormat() 166 public TimeUnitFormat(Locale locale, int style) { in TimeUnitFormat() argument [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | TimeUnitFormat.java | 92 private ULocale locale; field in TimeUnitFormat 123 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument 124 this(locale, FULL_NAME); in TimeUnitFormat() 133 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument 134 this(locale, FULL_NAME); in TimeUnitFormat() 146 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument 147 super(locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat() 156 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument 157 this(locale, style); in TimeUnitFormat() 168 public TimeUnitFormat(Locale locale, int style) { in TimeUnitFormat() argument [all …]
|