/external/libcxx/test/localization/locales/locale/locale.cons/ |
locale_string_cat.pass.cpp | 10 // <locale> 12 // locale(const locale& other, const string& std_name, category cat); 14 #include <locale> 18 #include "platform_support.h" // locale name macros 34 void check(const std::locale& loc) 72 std::locale loc(LOCALE_ru_RU_UTF_8); 74 std::locale loc2(loc, std::string(LOCALE_en_US_UTF_8), std::locale::monetary);
|
default.pass.cpp | 10 // <locale> 12 // locale() throw(); 14 #include <locale> 18 #include "platform_support.h" // locale name macros 34 void check(const std::locale& loc) 73 std::locale loc; 79 assert(std::locale::global(std::locale(LOCALE_en_US_UTF_8)) == loc); 81 std::locale loc2; 85 assert(loc2 == std::locale(LOCALE_en_US_UTF_8)) [all...] |
/external/chromium_org/third_party/icu/source/common/ |
servloc.h | 52 * A subclass of Key that implements a locale fallback mechanism. 53 * The first locale to search for is the locale provided by the 54 * client, and the fallback locale to search for is the current 55 * default locale. If a prefix is present, the currentDescriptor 56 * includes it before the locale proper, separated by "/". This 59 * <p>Canonicalization adjusts the locale string so that the 93 * PrimaryID is the user's requested locale string, 95 * fallbackID is the current default locale's string in 130 * Convenience method to return the locale corresponding to the (canonical) original ID [all...] |
locdispnames.cpp | 16 * Code for locale display names, separated out from other .cpp files 39 Locale::getDisplayLanguage(UnicodeString& dispLang) const 51 Locale::getDisplayLanguage(const Locale &displayLocale, 85 Locale::getDisplayScript(UnicodeString& dispScript) const 91 Locale::getDisplayScript(const Locale &displayLocale, 125 Locale::getDisplayCountry(UnicodeString& dispCntry) const 131 Locale::getDisplayCountry(const Locale &displayLocale [all...] |
ucasemap.cpp | 41 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode) { 55 ucasemap_setLocale(csm, locale, pErrorCode); 78 return csm->locale; 87 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { 94 length=uloc_getName(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); 95 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || length==sizeof(csm->locale)) { 98 length=uloc_getLanguage(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode) [all...] |
/external/icu/icu4c/source/common/ |
servloc.h | 52 * A subclass of Key that implements a locale fallback mechanism. 53 * The first locale to search for is the locale provided by the 54 * client, and the fallback locale to search for is the current 55 * default locale. If a prefix is present, the currentDescriptor 56 * includes it before the locale proper, separated by "/". This 59 * <p>Canonicalization adjusts the locale string so that the 93 * PrimaryID is the user's requested locale string, 95 * fallbackID is the current default locale's string in 130 * Convenience method to return the locale corresponding to the (canonical) original ID [all...] |
locdispnames.cpp | 16 * Code for locale display names, separated out from other .cpp files 39 Locale::getDisplayLanguage(UnicodeString& dispLang) const 51 Locale::getDisplayLanguage(const Locale &displayLocale, 85 Locale::getDisplayScript(UnicodeString& dispScript) const 91 Locale::getDisplayScript(const Locale &displayLocale, 125 Locale::getDisplayCountry(UnicodeString& dispCntry) const 131 Locale::getDisplayCountry(const Locale &displayLocale [all...] |
ucasemap.cpp | 41 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode) { 55 ucasemap_setLocale(csm, locale, pErrorCode); 78 return csm->locale; 87 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { 94 length=uloc_getName(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); 95 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || length==sizeof(csm->locale)) { 98 length=uloc_getLanguage(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode) [all...] |
/bionic/tests/ |
locale_test.cpp | 21 #include <locale.h> 23 TEST(locale, localeconv) { 50 TEST(locale, setlocale) { 62 // The "" locale is implementation-defined. For bionic, it's the C locale. 70 EXPECT_EQ(NULL, setlocale(LC_ALL, "this-is-not-a-locale")); 74 TEST(locale, newlocale) { 84 EXPECT_EQ(0, newlocale(LC_ALL, "this-is-not-a-locale", 0)); 88 TEST(locale, duplocale) { 94 TEST(locale, uselocale) [all...] |
/external/chromium_org/chrome/browser/chromeos/login/ |
startup_utils.cc | 173 std::string locale = local 175 if (!l10n_util::IsValidLocaleSyntax(locale)) 176 locale = "en-US"; 177 return locale; 181 void StartupUtils::SetInitialLocale(const std::string& locale) { 182 if (l10n_util::IsValidLocaleSyntax(locale)) 183 SaveStringPreferenceForced(prefs::kInitialLocale, locale);
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
rbnf.h | 69 * <p>The resources contain three predefined formatters for each locale: spellout, which 488 * subarrays is the locale name, and the remaining elements are localizations of the 512 * passed in. The formatter uses the default locale. 524 * passed in. The formatter uses the default locale. 550 * passed in. The formatter uses the specified locale to determine the 556 * @param locale A locale that governs which characters are used for 563 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale, 568 * passed in. The formatter uses the default locale 962 Locale locale; member in class:RuleBasedNumberFormat [all...] |
smpdtfmt.h | 57 * is guaranteed to get an appropriate formatting pattern for whatever locale the 70 * Unicode Locale Data Markup Language (LDML)</a> and further documented for ICU in the 388 * generation, it should match the 12-hour-cycle format preferred by the locale (h or K); it should not match 396 * generation, it should match the 24-hour-cycle format preferred by the locale (H or k); it should not match a 616 * Examples using the US locale: 709 * locale. 719 * Construct a SimpleDateFormat using the given pattern and the default locale. 720 * The locale is used to obtain the symbols used in formatting (e.g., the 733 * Construct a SimpleDateFormat using the given pattern, numbering system override, and the default locale. 734 * The locale is used to obtain the symbols used in formatting (e.g., th [all...] |
dtptngen.h | 42 * since normally this class is pre-built with data from a particular locale. 52 * Construct a flexible generator according to default locale. 60 * Construct a flexible generator according to data for a given locale. 66 static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& status); 435 DateTimePatternGenerator(const Locale& locale, UErrorCode & status); 451 Locale pLocale; // pattern locale 473 void initData(const Locale &locale, UErrorCode &status) [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
rbnf.h | 66 * <p>The resources contain three predefined formatters for each locale: spellout, which 485 * subarrays is the locale name, and the remaining elements are localizations of the 509 * passed in. The formatter uses the default locale. 521 * passed in. The formatter uses the default locale. 547 * passed in. The formatter uses the specified locale to determine the 553 * @param locale A locale that governs which characters are used for 560 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale, 565 * passed in. The formatter uses the default locale 974 Locale locale; member in class:RuleBasedNumberFormat [all...] |
smpdtfmt.h | 59 * is guaranteed to get an appropriate formatting pattern for whatever locale the 72 * Unicode Locale Data Markup Language (LDML)</a> and further documented for ICU in the 390 * generation, it should match the 12-hour-cycle format preferred by the locale (h or K); it should not match 398 * generation, it should match the 24-hour-cycle format preferred by the locale (H or k); it should not match a 618 * Examples using the US locale: 711 * locale. 721 * Construct a SimpleDateFormat using the given pattern and the default locale. 722 * The locale is used to obtain the symbols used in formatting (e.g., the 735 * Construct a SimpleDateFormat using the given pattern, numbering system override, and the default locale. 736 * The locale is used to obtain the symbols used in formatting (e.g., th [all...] |
dtptngen.h | 42 * since normally this class is pre-built with data from a particular locale. 52 * Construct a flexible generator according to default locale. 60 * Construct a flexible generator according to data for a given locale. 66 static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& status); 435 DateTimePatternGenerator(const Locale& locale, UErrorCode & status); 451 Locale pLocale; // pattern locale 473 void initData(const Locale &locale, UErrorCode &status) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
restest.cpp | 91 Locale *locale; member in struct:__anon16955 155 Don't use more than one of these at a time because of the Locale names 161 if (param[5].locale == NULL) { 162 param[0].locale = new Locale("root"); 163 param[1].locale = new Locale("te"); 164 param[2].locale = new Locale("te", "IN") 496 const char* locale = uloc_getAvailable(locIndex); local 592 Locale locale; local [all...] |
/external/icu/icu4c/source/test/intltest/ |
restest.cpp | 90 Locale *locale; member in struct:__anon1700 154 Don't use more than one of these at a time because of the Locale names 160 if (param[5].locale == NULL) { 161 param[0].locale = new Locale("root"); 162 param[1].locale = new Locale("te"); 163 param[2].locale = new Locale("te", "IN") 495 const char* locale = uloc_getAvailable(locIndex); local 591 Locale locale; local [all...] |
/external/chromium_org/third_party/icu/source/test/perf/perldriver/ |
PerfFramework.pm | 64 my($locale, $iter, $data, $program, $args, $variable); 69 foreach $locale (sort keys %datafiles ) { 70 foreach $data (@{ $datafiles{$locale} }) { 73 if(!($locale eq "")) { 74 $locdata = "<b>Locale:</b> $locale<br>"; 80 compareLoop ($tests, $locale, $DATADIR."/".$data); 82 compareLoop ($tests, $locale, $data); 96 my $locale = shift; 99 if($locale) { [all...] |
/external/icu/icu4c/source/test/perf/perldriver/ |
PerfFramework.pm | 64 my($locale, $iter, $data, $program, $args, $variable); 69 foreach $locale (sort keys %datafiles ) { 70 foreach $data (@{ $datafiles{$locale} }) { 73 if(!($locale eq "")) { 74 $locdata = "<b>Locale:</b> $locale<br>"; 80 compareLoop ($tests, $locale, $DATADIR."/".$data); 82 compareLoop ($tests, $locale, $data); 96 my $locale = shift; 99 if($locale) { [all...] |
/external/chromium_org/base/i18n/ |
rtl.cc | 21 std::string GetLocaleString(const icu::Locale& locale) { 22 const char* language = locale.getLanguage(); 23 const char* country = locale.getCountry(); 24 const char* variant = locale.getVariant(); 68 // Represents the locale-specific ICU text direction. 71 // Convert the ICU default locale to a string. 73 return GetLocaleString(icu::Locale::getDefault()); 76 // Convert the ICU canonicalized locale to a string. 77 std::string GetCanonicalLocale(const char* locale) { 93 const icu::Locale& locale = icu::Locale::getDefault(); local 127 const icu::Locale& locale = icu::Locale::getDefault(); local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
TextBreakIterator.h | 45 PLATFORM_EXPORT TextBreakIterator* acquireLineBreakIterator(const LChar*, int length, const AtomicString& locale, const UChar* priorContext, unsigned priorContextLength); 46 PLATFORM_EXPORT TextBreakIterator* acquireLineBreakIterator(const UChar*, int length, const AtomicString& locale, const UChar* priorContext, unsigned priorContextLength); 64 LazyLineBreakIterator(String string, const AtomicString& locale = AtomicString()) 66 , m_locale(locale) 148 void resetStringAndReleaseIterator(String string, const AtomicString& locale) 154 m_locale = locale;
|
/external/chromium_org/third_party/icu/source/samples/dtptngsample/ |
dtptngsample.cpp | 21 u_printf(" yQQQQ,yMMMM, MMMMd, hhmm, jjmm per locale\n"); 29 UnicodeString("jjmm"), // preferred hour format for the given locale, i.e., 24-hour-cycle format for fr_FR 33 Locale locales[] = { 34 Locale ("en_US"), 35 Locale ("fr_FR"), 36 Locale ("zh_CN"), 51 // create a DateTimePatternGenerator instance for given locale 55 // Constructs a SimpleDateFormat with the best pattern generated above and the given locale 98 Locale locale=Locale::getFrance() local 139 Locale locale =Locale::getFrance(); local [all...] |
/external/chromium_org/ui/base/l10n/ |
l10n_util_collator.h | 66 void SortStringsUsingMethod(const std::string& locale, 70 icu::Locale loc(locale.c_str()); 86 // This uses the locale specified in the constructor. 113 // If we can not get collator instance for specified locale, just do simple 122 // each element in the vector by using collation rules for |locale|. 127 void SortVectorWithStringKey(const std::string& locale, 135 icu::Locale loc(locale.c_str()); 150 void SortVectorWithStringKey(const std::string& locale, [all...] |
/external/icu/icu4c/source/samples/dtptngsample/ |
dtptngsample.cpp | 21 u_printf(" yQQQQ,yMMMM, MMMMd, hhmm, jjmm per locale\n"); 29 UnicodeString("jjmm"), // preferred hour format for the given locale, i.e., 24-hour-cycle format for fr_FR 33 Locale locales[] = { 34 Locale ("en_US"), 35 Locale ("fr_FR"), 36 Locale ("zh_CN"), 51 // create a DateTimePatternGenerator instance for given locale 55 // Constructs a SimpleDateFormat with the best pattern generated above and the given locale 83 Locale locale=Locale::getFrance() local 124 Locale locale =Locale::getFrance(); local [all...] |