Searched refs:locale (Results 1 - 25 of 1049) sorted by relevance

1234567891011>>

/external/compiler-rt/test/msan/
H A Dsetlocale.cc4 #include <locale.h>
8 char *locale = setlocale (LC_ALL, ""); local
9 assert(locale);
10 if (locale[0])
/external/libcxx/test/std/localization/locales/locale/locale.types/locale.category/
H A Dcategory.pass.cpp15 // <locale>
19 #include <locale>
29 static_assert((std::is_same<std::locale::category, int>::value), "");
30 assert(std::locale::none == 0);
31 assert(std::locale::collate);
32 assert(std::locale::ctype);
33 assert(std::locale::monetary);
34 assert(std::locale::numeric);
35 assert(std::locale::time);
36 assert(std::locale
[all...]
/external/clang/test/CodeGenCXX/
H A Ddebug-info-context.cpp4 class locale { class
10 locale _M_ios_locale;
/external/v8/test/intl/break-iterator/
H A Ddefault-locale.js28 // 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...]
H A Dresolved-options-is-method.js38 result.locale = 'xx';
40 assertEquals(result.locale, 'xx');
H A Dwellformed-unsupported-locale.js28 // Passing a well formed but unsupported locale falls back to default.
32 assertEquals(iterator.resolvedOptions().locale, %GetDefaultICULocale());
/external/v8/test/intl/date-format/
H A Ddefault-locale.js28 // Constructing DateTimeFormat 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, dtfNone.resolvedOptions().locale);
H A Dresolved-options-is-method.js38 result.locale = 'xx';
40 assertEquals(result.locale, 'xx');
H A Dwellformed-unsupported-locale.js28 // Passing a well formed but unsupported locale falls back to default.
32 assertEquals(dtf.resolvedOptions().locale, %GetDefaultICULocale());
/external/v8/test/intl/number-format/
H A Ddefault-locale.js28 // Constructing NumberFormat 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, nfNone.resolvedOptions().locale);
H A Dresolved-options-is-method.js38 result.locale = 'xx';
40 assertEquals(result.locale, 'xx');
H A Dwellformed-unsupported-locale.js28 // Passing a well formed but unsupported locale falls back to default.
32 assertEquals(nf.resolvedOptions().locale, %GetDefaultICULocale());
/external/v8/test/intl/collator/
H A Ddefault-locale.js28 // Constructing Collator 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, collatorNone.resolvedOptions().locale);
48 assertEquals(options.locale, collatorBraket.resolvedOptions().locale);
[all...]
H A Dresolved-options-is-method.js38 result.locale = 'xx';
40 assertEquals(result.locale, 'xx');
H A Dwellformed-unsupported-locale.js28 // Passing a well formed but unsupported locale falls back to default.
32 assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
/external/libcxx/test/std/localization/locales/locale/locale.members/
H A Dname.pass.cpp10 // <locale>
14 #include <locale>
17 #include "platform_support.h" // locale name macros
22 std::locale loc;
26 std::locale loc(LOCALE_en_US_UTF_8);
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DContentLanguage.java93 protected Locale locale;
121 if ( "".equals(locale.getCountry())) {
122 return locale.getLanguage();
124 return locale.getLanguage() + '-' + locale.getCountry();
135 this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) );
137 this.locale = new Locale(languageTag);
150 return locale;
162 this.locale = language;
167 if (this.locale !
92 protected Locale locale; field in class:ContentLanguage
[all...]
/external/libcxx/include/support/ibm/
H A Dxlocale.h39 locale_t newlocale(int category_mask, const char *locale, locale_t base) argument
42 if ((loc = (_LC_locale_t *)__xopen_locale(locale)) == NULL)
81 int isalnum_l(int c, locale_t locale) argument
83 return __xisalnum(locale, c);
86 int isalpha_l(int c, locale_t locale) argument
88 return __xisalpha(locale, c);
91 int isblank_l(int c, locale_t locale) argument
93 return __xisblank(locale, c);
96 int iscntrl_l(int c, locale_t locale) argument
98 return __xiscntrl(locale,
101 isdigit_l(int c, locale_t locale) argument
106 isgraph_l(int c, locale_t locale) argument
111 islower_l(int c, locale_t locale) argument
116 isprint_l(int c, locale_t locale) argument
122 ispunct_l(int c, locale_t locale) argument
127 isspace_l(int c, locale_t locale) argument
132 isupper_l(int c, locale_t locale) argument
138 isxdigit_l(int c, locale_t locale) argument
144 iswalnum_l(wchar_t wc, locale_t locale) argument
150 iswalpha_l(wchar_t wc, locale_t locale) argument
156 iswblank_l(wchar_t wc, locale_t locale) argument
162 iswcntrl_l(wchar_t wc, locale_t locale) argument
168 iswdigit_l(wchar_t wc, locale_t locale) argument
174 iswgraph_l(wchar_t wc, locale_t locale) argument
180 iswlower_l(wchar_t wc, locale_t locale) argument
186 iswprint_l(wchar_t wc, locale_t locale) argument
192 iswpunct_l(wchar_t wc, locale_t locale) argument
198 iswspace_l(wchar_t wc, locale_t locale) argument
204 iswupper_l(wchar_t wc, locale_t locale) argument
210 iswxdigit_l(wchar_t wc, locale_t locale) argument
216 iswctype_l(wint_t wc, wctype_t desc, locale_t locale) argument
222 toupper_l(int c, locale_t locale) argument
227 tolower_l(int c, locale_t locale) argument
232 towupper_l(wint_t wc, locale_t locale) argument
237 towlower_l(wint_t wc, locale_t locale) argument
243 strcoll_l(const char *__s1, const char *__s2, locale_t locale) argument
248 wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t locale) argument
253 strxfrm_l(char *__s1, const char *__s2, size_t __n, locale_t locale) argument
259 wcsxfrm_l(wchar_t *__ws1, const wchar_t *__ws2, size_t __n, locale_t locale) argument
269 strftime_l(char *__s, size_t __size, const char *__fmt, const struct tm *__tm, locale_t locale) argument
277 strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
282 strtol_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
287 strtold_l(const char *__nptr, char **__endptr, locale_t locale) argument
292 strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
297 strtoul_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
[all...]
/external/libcxx/test/std/localization/locales/locale.global.templates/
H A Dhas_facet.pass.cpp10 // <locale>
12 // template <class Facet> bool has_facet(const locale& loc) throw();
14 #include <locale>
18 : public std::locale::facet
20 static std::locale::id id;
23 std::locale::id my_facet::id;
27 std::locale loc;
30 std::locale loc2(loc, new my_facet);
/external/icu/icu4c/source/common/
H A Dustrcase_locale.cpp26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { argument
42 /* the internal functions require locale!=NULL */
43 if(locale==NULL) {
45 // changes to the default locale via uloc_setDefault().
47 // does not cache the locale ID.
51 // and we do not need the locale ID to be canonicalized.
53 // Best is to not call case mapping functions with a NULL locale ID.
54 locale=uloc_getDefault();
56 for(i=0; i<4 && (c=locale[i])!=0 && c!='-' && c!='_'; ++i) {
57 csm->locale[
71 setTempCaseMap(UCaseMap *csm, const char *locale) argument
85 u_strToLower(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) argument
99 u_strToUpper(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) argument
[all...]
H A Dunistr_case_locale.cpp35 setTempCaseMap(UCaseMap *csm, const char *locale) { argument
39 if(locale!=NULL && locale[0]==0) {
40 csm->locale[0]=0;
42 ustrcase_setTempCaseMapLocale(csm, locale);
52 UnicodeString::toLower(const Locale &locale) { argument
54 setTempCaseMap(&csm, locale.getName());
64 UnicodeString::toUpper(const Locale &locale) { argument
66 setTempCaseMap(&csm, locale.getName());
/external/libcxx/test/std/localization/locale.categories/category.messages/locale.messages/
H A Dmessages_base.pass.cpp10 // <locale>
18 #include <locale>
/external/libcxx/test/std/localization/
H A Dversion.pass.cpp10 // <locale>
12 #include <locale>
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/
H A Ddtor.pass.cpp10 // <locale>
16 #include <locale>
24 std::locale l(std::locale::classic(), new std::ctype<char>);
30 std::locale l(std::locale::classic(), new std::ctype<char>(table));
35 std::locale l(std::locale::classic(),
/external/v8/test/intl/overrides/
H A Dstring.js39 function testArrays(locale) {
41 if (locale === undefined) {
43 locale = [];
45 data = testData[locale];
48 var collator = new Intl.Collator(locale, options);
51 return a.localeCompare(b, locale, options)
62 // Specify locale, keep default options.
67 // Specify locale and options.

Completed in 393 milliseconds

1234567891011>>