Searched refs:locale (Results 1 - 25 of 1319) 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/jacoco/org.jacoco.ant.test/src/org/jacoco/ant/
H A DReportTaskLocaleTest.java21 * Unit tests for the locale conversion built into {@link ReportTask}.
27 Locale locale = ReportTask.parseLocale("");
29 assertEquals("", locale.getLanguage());
30 assertEquals("", locale.getCountry());
31 assertEquals("", locale.getVariant());
36 Locale locale = ReportTask.parseLocale("fr");
38 assertEquals("fr", locale.getLanguage());
39 assertEquals("", locale.getCountry());
40 assertEquals("", locale.getVariant());
45 Locale locale
[all...]
/external/clang/test/CodeGenCXX/
H A Ddebug-info-context.cpp4 class locale { class
10 locale _M_ios_locale;
/external/libcxx/test/std/localization/locales/locale/locale.members/
H A Dname.pass.cpp10 // REQUIRES: locale.en_US.UTF-8
12 // <locale>
16 #include <locale>
19 #include "platform_support.h" // locale name macros
24 std::locale loc;
28 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/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/libcxx/include/support/ibm/
H A Dxlocale.h26 int isalnum_l(int c, locale_t locale) argument
28 return __xisalnum(locale, c);
31 int isalpha_l(int c, locale_t locale) argument
33 return __xisalpha(locale, c);
36 int isblank_l(int c, locale_t locale) argument
38 return __xisblank(locale, c);
41 int iscntrl_l(int c, locale_t locale) argument
43 return __xiscntrl(locale, c);
46 int isdigit_l(int c, locale_t locale) argument
48 return __xisdigit(locale,
51 isgraph_l(int c, locale_t locale) argument
56 islower_l(int c, locale_t locale) argument
61 isprint_l(int c, locale_t locale) argument
67 ispunct_l(int c, locale_t locale) argument
72 isspace_l(int c, locale_t locale) argument
77 isupper_l(int c, locale_t locale) argument
83 isxdigit_l(int c, locale_t locale) argument
89 iswalnum_l(wchar_t wc, locale_t locale) argument
95 iswalpha_l(wchar_t wc, locale_t locale) argument
101 iswblank_l(wchar_t wc, locale_t locale) argument
107 iswcntrl_l(wchar_t wc, locale_t locale) argument
113 iswdigit_l(wchar_t wc, locale_t locale) argument
119 iswgraph_l(wchar_t wc, locale_t locale) argument
125 iswlower_l(wchar_t wc, locale_t locale) argument
131 iswprint_l(wchar_t wc, locale_t locale) argument
137 iswpunct_l(wchar_t wc, locale_t locale) argument
143 iswspace_l(wchar_t wc, locale_t locale) argument
149 iswupper_l(wchar_t wc, locale_t locale) argument
155 iswxdigit_l(wchar_t wc, locale_t locale) argument
161 iswctype_l(wint_t wc, wctype_t desc, locale_t locale) argument
167 toupper_l(int c, locale_t locale) argument
172 tolower_l(int c, locale_t locale) argument
177 towupper_l(wint_t wc, locale_t locale) argument
182 towlower_l(wint_t wc, locale_t locale) argument
188 strcoll_l(const char *__s1, const char *__s2, locale_t locale) argument
193 wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t locale) argument
198 strxfrm_l(char *__s1, const char *__s2, size_t __n, locale_t locale) argument
204 wcsxfrm_l(wchar_t *__ws1, const wchar_t *__ws2, size_t __n, locale_t locale) argument
214 strftime_l(char *__s, size_t __size, const char *__fmt, const struct tm *__tm, locale_t locale) argument
222 strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
227 strtol_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
232 strtold_l(const char *__nptr, char **__endptr, locale_t locale) argument
237 strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
242 strtoul_l(const char *__nptr, char **__endptr, int __base, locale_t locale) argument
[all...]
/external/icu/icu4c/source/common/
H A Dustrcase_locale.cpp28 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { argument
44 /* the internal functions require locale!=NULL */
45 if(locale==NULL) {
47 // changes to the default locale via uloc_setDefault().
49 // does not cache the locale ID.
53 // and we do not need the locale ID to be canonicalized.
55 // Best is to not call case mapping functions with a NULL locale ID.
56 locale=uloc_getDefault();
58 for(i=0; i<4 && (c=locale[i])!=0 && c!='-' && c!='_'; ++i) {
59 csm->locale[
73 setTempCaseMap(UCaseMap *csm, const char *locale) argument
87 u_strToLower(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) argument
101 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.cpp37 setTempCaseMap(UCaseMap *csm, const char *locale) { argument
41 if(locale!=NULL && locale[0]==0) {
42 csm->locale[0]=0;
44 ustrcase_setTempCaseMapLocale(csm, locale);
54 UnicodeString::toLower(const Locale &locale) { argument
56 setTempCaseMap(&csm, locale.getName());
66 UnicodeString::toUpper(const Locale &locale) { argument
68 setTempCaseMap(&csm, locale.getName());
/external/libchrome/base/test/
H A Dscoped_locale.cc7 #include <locale.h>
13 ScopedLocale::ScopedLocale(const std::string& locale) { argument
15 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != NULL) <<
16 "Failed to set locale: " << locale;
/external/libcxx/test/libcxx/depr/depr.c.headers/
H A Dlocale_h.pass.cpp10 // <locale.h>
12 #include <locale.h>
/external/libcxx/test/libcxx/localization/
H A Dversion.pass.cpp10 // <locale>
12 #include <locale>
/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/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/libusb/libusb/
H A Dstrerror.c22 #include <locale.h>
44 * code for your locale at the end of \c usbi_locale_supported[]<br>
132 * This takes a locale string in the default setlocale format: lang[-region]
147 * locale settings, call libusb_setlocale(setlocale(LC_MESSAGES, NULL)),
148 * after your app has done its locale setup.
150 * \param locale locale-string in the form of lang[_country_region][.codeset]
153 * \returns LIBUSB_ERROR_INVALID_PARAM if the locale doesn't meet the requirements
158 int API_EXPORTED libusb_setlocale(const char *locale) argument
162 if ( (locale
[all...]
/external/libcxx/include/
H A Dlocale.h2 //===---------------------------- locale.h --------------------------------===//
15 locale.h synopsis
43 #include_next <locale.h>
/external/libcxx/test/std/re/re.regex/re.regex.locale/
H A Dimbue.pass.cpp10 // REQUIRES: locale.en_US.UTF-8
19 #include <locale>
23 #include "platform_support.h" // locale name macros
28 std::locale loc = r.imbue(std::locale(LOCALE_en_US_UTF_8));
31 loc = r.imbue(std::locale("C"));
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/
H A Dchar16_t_always_noconv.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar16_t_encoding.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar16_t_max_length.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar32_t_always_noconv.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar32_t_encoding.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar32_t_max_length.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();
H A Dchar_always_noconv.pass.cpp10 // <locale>
16 #include <locale>
23 std::locale l = std::locale::classic();

Completed in 510 milliseconds

1234567891011>>