/external/libcxx/test/localization/locales/locale/locale.types/locale.id/ |
id.pass.cpp | 10 // <locale> 12 // class locale::id 22 #include <locale> 25 std::locale::id id0; 26 std::locale::id id2; 27 std::locale::id id1;
|
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ |
rdbuf.pass.cpp | 10 // <locale> 16 #include <locale>
|
/external/llvm/lib/Support/ |
Locale.cpp | 1 #include "llvm/Support/Locale.h" 6 namespace locale { namespace in namespace:llvm::sys 29 } // namespace locale
|
/external/mesa3d/src/glsl/ |
strtod.c | 30 #include <locale.h> 41 * Wrapper around strtod which uses the "C" locale so the decimal
|
/bionic/libc/bionic/ |
locale.cpp | 29 #include <locale.h> 35 // We currently support a single locale, the "C" locale (also known as "POSIX"). 104 static bool __is_supported_locale(const char* locale) { 105 return (strcmp(locale, "") == 0 || 106 strcmp(locale, "C") == 0 || 107 strcmp(locale, "C.UTF-8") == 0 || 108 strcmp(locale, "en_US.UTF-8") == 0 || 109 strcmp(locale, "POSIX") == 0); 147 // Caller wants to set the locale rather than just query [all...] |
/external/chromium_org/v8/test/intl/overrides/ |
date.js | 45 // Specify locale, default options for toLocaleXXXString 46 var locale = ['sr']; variable 47 dtfDate = new Intl.DateTimeFormat(locale); 49 locale, {hour: 'numeric', minute: 'numeric', second: 'numeric'}); 51 locale, {year: 'numeric', month: 'numeric', day: 'numeric', 53 assertEquals(dtfAll.format(date), date.toLocaleString(locale)); 54 assertEquals(dtfDate.format(date), date.toLocaleDateString(locale)); 55 assertEquals(dtfTime.format(date), date.toLocaleTimeString(locale)); 58 // Specify locale and options for toLocaleXXXString 59 locale = ['ko'] [all...] |
number.js | 40 // Specify locale, default options for toLocaleString method. 41 var locale = ['sr']; variable 42 nf = new Intl.NumberFormat(locale); 43 assertEquals(nf.format(integer), integer.toLocaleString(locale)); 44 assertEquals(nf.format(float), float.toLocaleString(locale)); 47 // Specify locale and options for toLocaleString method. 48 locale = ['ko']; 51 nf = new Intl.NumberFormat(locale, options); 52 assertEquals(nf.format(integer), integer.toLocaleString(locale, options)); 53 assertEquals(nf.format(float), float.toLocaleString(locale, options)) [all...] |
/external/libcxx/test/localization/locales/locale/locale.statics/ |
global.pass.cpp | 10 // <locale> 12 // static const locale& classic(); 14 #include <locale> 17 #include "platform_support.h" // locale name macros 19 void check(const std::locale& loc) 56 std::locale loc; 59 assert(std::locale::global(std::locale(LOCALE_en_US_UTF_8)) == loc); 60 std::locale loc2; 62 assert(loc2 == std::locale(LOCALE_en_US_UTF_8)) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
umsg.h | 159 * Format a message for a locale. 161 * locale. For all numeric arguments, double is assumed unless the type is 163 * @param locale The locale for which the message will be formatted 177 u_formatMessage(const char *locale, 186 * Format a message for a locale. 188 * locale. For all numeric arguments, double is assumed unless the type is 190 * @param locale The locale for which the message will be formatted 204 u_vformatMessage( const char *locale, [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
umsg.h | 159 * Format a message for a locale. 161 * locale. For all numeric arguments, double is assumed unless the type is 163 * @param locale The locale for which the message will be formatted 177 u_formatMessage(const char *locale, 186 * Format a message for a locale. 188 * locale. For all numeric arguments, double is assumed unless the type is 190 * @param locale The locale for which the message will be formatted 204 u_vformatMessage( const char *locale, [all...] |
/external/chromium_org/third_party/WebKit/Source/core/page/ |
PagePopupController.cpp | 72 return m_popupClient->locale().convertToLocalizedNumber(numberString); 82 return m_popupClient->locale().formatDateTime(date, Locale::FormatTypeMedium); 91 return m_popupClient->locale().formatDateTime(date, Locale::FormatTypeShort); 101 String localizedWeek = m_popupClient->locale().formatDateTime(week); 102 return m_popupClient->locale().queryString(WebLocalizedString::AXCalendarWeekDescription, localizedWeek, localizedDateString);
|
/external/chromium_org/third_party/icu/source/samples/legacy/ |
oldcol.cpp | 28 int32_t getSortKey_legacy(const char *locale, const UChar *string, int32_t sLen, uint8_t *buffer, int32_t bLen) { 30 UCollator *coll = ucol_open(locale, &status); 58 void initCollator_legacy(const char *locale) { 60 compareCollator = ucol_open(locale, &status); 64 fprintf(stderr, "initCollator_legacy(%s): error opening collator, %s!\n", locale, u_errorName(status));
|
/external/chromium_org/v8/test/intl/break-iterator/ |
default-locale.js | 28 // Constructing BreakIterator with no locale arguments or with [] 29 // creates one with default locale. 36 assertFalse(options.locale === 'und'); 37 assertFalse(options.locale === ''); 38 assertFalse(options.locale === undefined); 41 assertEquals(options.locale, %GetDefaultICULocale()); 44 assertEquals(options.locale, iteratorNone.resolvedOptions().locale); 48 assertEquals(options.locale, iteratorBraket.resolvedOptions().locale); [all...] |
/external/icu/icu4c/source/samples/legacy/ |
oldcol.cpp | 28 int32_t getSortKey_legacy(const char *locale, const UChar *string, int32_t sLen, uint8_t *buffer, int32_t bLen) { 30 UCollator *coll = ucol_open(locale, &status); 58 void initCollator_legacy(const char *locale) { 60 compareCollator = ucol_open(locale, &status); 64 fprintf(stderr, "initCollator_legacy(%s): error opening collator, %s!\n", locale, u_errorName(status));
|
/external/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/Android.mk 19 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/widen_many 23 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/scan_is 27 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/narrow_many 31 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/scan_not 35 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/toupper_many 39 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/toupper_1 43 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/widen_1 47 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/tolower_1 51 test_name := localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/is_man [all...] |
/external/chromium_org/ui/base/l10n/ |
l10n_util.cc | 220 // field (say, 'isPartial' to our version of ICU locale files) and 226 bool IsLocaleAvailable(const std::string& locale) { 227 // If locale has any illegal characters in it, we don't want to try to 228 // load it because it may be pointing outside the locale data file directory. 229 if (!base::i18n::IsFilenameLegal(base::ASCIIToUTF16(locale))) 234 // under a system locale Chrome is not localized to (e.g.Farsi on Linux), 237 if (!l10n_util::IsLocaleSupportedByOS(locale)) 248 return ResourceBundle::GetSharedInstance().LocaleDataPakExists(locale); 285 // Normalize underscores to hyphens because that's what our locale files 289 // Map the Chinese locale names over to zh-CN and zh-TW 497 const std::string locale = GetApplicationLocaleInternal(pref_locale); local [all...] |
l10n_util.h | 25 UI_BASE_EXPORT std::string GetCanonicalLocale(const std::string& locale); 27 // Takes normalized locale as |locale|. Returns language part (before '-'). 28 UI_BASE_EXPORT std::string GetLanguage(const std::string& locale); 30 // This method translates a generic locale name to one of the locally defined 32 UI_BASE_EXPORT bool CheckAndResolveLocale(const std::string& locale, 35 // This method is responsible for determining the locale as defined below. In 39 // Returns the locale used by the Application. First we use the value from the 41 // as |pref_locale|), finally, we fall back on the system locale. We only return 42 // a value if there's a corresponding resource DLL for the locale. Otherwise [all...] |
/external/chromium_org/third_party/icu/source/test/perf/DateFmtPerf/ |
DateFmtPerf.cpp | 20 if (locale == NULL){ 21 locale = "en_US"; // set default locale 55 DateFmtFunction* func= new DateFmtFunction(1, locale); 60 DateFmtFunction* func= new DateFmtFunction(40, locale); 65 DateFmtFunction* func= new DateFmtFunction(400, locale); 90 NumFmtFunction* func= new NumFmtFunction(10000, locale); 95 NumFmtFunction* func= new NumFmtFunction(100000, locale); 100 CollationFunction* func= new CollationFunction(40, locale); 105 CollationFunction* func= new CollationFunction(400, locale); [all...] |
/external/icu/icu4c/source/test/perf/DateFmtPerf/ |
DateFmtPerf.cpp | 20 if (locale == NULL){ 21 locale = "en_US"; // set default locale 55 DateFmtFunction* func= new DateFmtFunction(1, locale); 60 DateFmtFunction* func= new DateFmtFunction(40, locale); 65 DateFmtFunction* func= new DateFmtFunction(400, locale); 90 NumFmtFunction* func= new NumFmtFunction(10000, locale); 95 NumFmtFunction* func= new NumFmtFunction(100000, locale); 100 CollationFunction* func= new CollationFunction(40, locale); 105 CollationFunction* func= new CollationFunction(400, locale); [all...] |
/external/libcxx/test/localization/locales/locale/locale.cons/ |
locale_facetptr.pass.cpp | 10 // <locale> 12 // template <class Facet> locale(const locale& other, Facet* f); 14 #include <locale> 18 #include "platform_support.h" // locale name macros 34 void check(const std::locale& loc) 70 : public std::locale::facet 74 static std::locale::id id; 77 std::locale::id my_facet::id; 83 std::locale loc(LOCALE_ru_RU_UTF_8) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/exported/linux/ |
WebFontInfo.cpp | 126 static PassOwnPtr<CachedFontSet> createForLocale(const char* locale) 128 FcFontSet* fontSet = createFcFontSetForLocale(locale); 152 static FcFontSet* createFcFontSetForLocale(const char* locale) 156 if (locale) { 158 FcPatternAddString(pattern, FC_LANG, reinterpret_cast<const FcChar8*>(locale)); 169 if (!locale) 233 WebFallbackFont fallbackFontForCharInLocale(WebUChar32 c, const char* locale) 237 if (locale && strlen(locale)) { 238 localeKey = AtomicString(locale); [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
DateTimeChooserImpl.cpp | 54 , m_locale(Locale::create(parameters.locale)) 113 todayLabelString = locale().queryString(WebLocalizedString::ThisMonthButtonLabel); 114 otherDateLabelString = locale().queryString(WebLocalizedString::OtherMonthLabel); 116 todayLabelString = locale().queryString(WebLocalizedString::ThisWeekButtonLabel); 117 otherDateLabelString = locale().queryString(WebLocalizedString::OtherWeekLabel); 119 todayLabelString = locale().queryString(WebLocalizedString::CalendarToday); 120 otherDateLabelString = locale().queryString(WebLocalizedString::OtherDateLabel); 137 addProperty("locale", m_parameters.locale.string(), data) 181 Locale& DateTimeChooserImpl::locale() function in class:blink::DateTimeChooserImpl [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
ConfigurationTest.java | 19 import java.util.Locale; 43 mConfig.locale = Locale.getDefault(); 96 cfg1.locale = new Locale("", "", "2"); 97 cfg2.locale = new Locale("", "", "3"); 99 cfg1.locale = new Locale("", "", "3"); 100 cfg2.locale = new Locale("", "", "2") [all...] |
/external/chromium_org/chrome/browser/profiles/ |
profile_downloader_unittest.cc | 15 const std::string& locale) { 34 if (!locale.empty()) 35 stream << (started ? ", " : "") << "\"locale\": \"" << locale << "\""; 55 const std::string& locale, 62 GetJSonData(full_name, given_name, url, locale), 75 EXPECT_EQ(locale, parsed_locale); 136 // Data with only locale. 140 // Data without name or URL or locale.
|
/external/chromium_org/third_party/cython/src/Cython/Includes/libc/ |
locale.pxd | 1 # 7.11 Localization <locale.h> 7 cdef extern from "locale.h" nogil: 42 # 7.11.1 Locale control 43 char *setlocale (int category, const char *locale)
|