/external/compiler-rt/test/msan/ |
setlocale.cc | 4 #include <locale.h> 8 char *locale = setlocale (LC_ALL, ""); local 9 assert(locale); 10 if (locale[0])
|
/external/libcxx/test/localization/locales/locale/locale.types/locale.category/ |
category.pass.cpp | 15 // <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::messages) [all...] |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locales/locale/locale.types/locale.category/Android.mk 19 test_name := localization/locales/locale/locale.types/locale.category/category
|
/external/clang/test/CodeGenCXX/ |
debug-info-context.cpp | 4 class locale { class 10 locale _M_ios_locale;
|
/external/libcxx/include/support/ibm/ |
xlocale.h | 39 locale_t newlocale(int category_mask, const char *locale, locale_t base) 42 if ((loc = (_LC_locale_t *)__xopen_locale(locale)) == NULL) 81 int isalnum_l(int c, locale_t locale) 83 return __xisalnum(locale, c); 86 int isalpha_l(int c, locale_t locale) 88 return __xisalpha(locale, c); 91 int isblank_l(int c, locale_t locale) 93 return __xisblank(locale, c); 96 int iscntrl_l(int c, locale_t locale) 98 return __xiscntrl(locale, c) [all...] |
/external/libcxx/test/localization/locales/locale/locale.members/ |
name.pass.cpp | 10 // <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/ |
ContentLanguage.java | 31 import java.util.Locale; 93 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) 92 protected Locale locale; field in class:ContentLanguage [all...] |
/external/libcxx/test/localization/locales/locale/locale.types/locale.facet/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locales/locale/locale.types/locale.facet/Android.mk 19 test_name := localization/locales/locale/locale.types/locale.facet/facet
|
/external/libcxx/test/localization/locales/locale/locale.types/locale.id/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locales/locale/locale.types/locale.id/Android.mk 19 test_name := localization/locales/locale/locale.types/locale.id/id
|
/external/libcxx/test/localization/locales/locale.global.templates/ |
has_facet.pass.cpp | 10 // <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/chromium_org/third_party/WebKit/Source/platform/text/ |
TextBreakIteratorInternalICU.cpp | 36 DEFINE_STATIC_LOCAL(const CString, locale, (defaultLanguage().latin1())); 37 return locale.data();
|
/external/libcxx/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/Android.mk 19 test_name := localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift 23 test_name := localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_encoding 27 test_name := localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_ou [all...] |
/external/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/Android.mk 19 test_name := localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/neg_format 23 test_name := localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/pos_format 27 test_name := localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/groupin [all...] |
/external/chromium_org/base/test/ |
scoped_locale.cc | 7 #include <locale.h> 13 ScopedLocale::ScopedLocale(const std::string& locale) { 15 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != NULL) << 16 "Failed to set locale: " << locale;
|
/external/chromium_org/third_party/icu/source/common/ |
ustrcase_locale.cpp | 14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault()) 26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { 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) [all...] |
unistr_case_locale.cpp | 14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault()) 35 setTempCaseMap(UCaseMap *csm, const char *locale) { 39 if(locale!=NULL && locale[0]==0) { 40 csm->locale[0]=0; 42 ustrcase_setTempCaseMapLocale(csm, locale); 48 return toLower(Locale::getDefault()); 52 UnicodeString::toLower(const Locale &locale) { 54 setTempCaseMap(&csm, locale.getName()) [all...] |
/external/icu/icu4c/source/common/ |
ustrcase_locale.cpp | 14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault()) 26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { 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) [all...] |
unistr_case_locale.cpp | 14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault()) 35 setTempCaseMap(UCaseMap *csm, const char *locale) { 39 if(locale!=NULL && locale[0]==0) { 40 csm->locale[0]=0; 42 ustrcase_setTempCaseMapLocale(csm, locale); 48 return toLower(Locale::getDefault()); 52 UnicodeString::toLower(const Locale &locale) { 54 setTempCaseMap(&csm, locale.getName()) [all...] |
/external/libcxx/test/localization/locale.categories/category.messages/locale.messages/ |
messages_base.pass.cpp | 10 // <locale> 18 #include <locale>
|
/external/libcxx/test/localization/ |
version.pass.cpp | 10 // <locale> 12 #include <locale>
|
/external/libcxx/test/localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/Android.mk 19 test_name := localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/widen_many 23 test_name := localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/scan_is 27 test_name := localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/narrow_man [all...] |
/external/libcxx/test/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/Android.mk 19 test_name := localization/locale.categories/category.time/locale.time.get/locale.time.get.members/get_monthname 23 test_name := localization/locale.categories/category.time/locale.time.get/locale.time.get.members/get_weekday_wide 27 test_name := localization/locale.categories/category.time/locale.time.get/locale.time.get.members/get_on [all...] |
/external/chromium_org/third_party/libusb/src/libusb/ |
strerror.c | 21 #include <locale.h> 41 * code for your locale at the end of \c usbi_locale_supported[]<br> 114 * This takes a locale string in the default setlocale format: lang[-region] 129 * locale settings, call libusb_setlocale(setlocale(LC_MESSAGES, NULL)), 130 * after your app has done its locale setup. 132 * \param locale locale-string in the form of lang[_country_region][.codeset] 135 * \returns LIBUSB_ERROR_INVALID_PARAM if the locale doesn't meet the requirements 140 int API_EXPORTED libusb_setlocale(const char *locale) 144 if ( (locale == NULL) || (strlen(locale) < 2 [all...] |
/external/libcxx/test/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
Android.mk | 17 test_makefile := external/libcxx/test/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/Android.mk 19 test_name := localization/locale.categories/category.time/locale.time.put/locale.time.put.members/put1 23 test_name := localization/locale.categories/category.time/locale.time.put/locale.time.put.members/put2
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleReceiver.java | 28 * Broadcast receiver that can change the system's locale.
31 * to easily trigger a locale change on an emulator as such:
34 * --es com.android.intent.extra.LOCALE en_US
44 /** An extra String that specifies the locale to set, in the form "en_US". */
45 public static final String EXTRA_LOCALE = "com.android.intent.extra.LOCALE";
57 String locale = intent.getStringExtra(EXTRA_LOCALE);
local 59 // Enforce the locale string is either in the form "ab" or "ab_cd"
60 boolean is_ok = locale != null;
61 is_ok = is_ok && (locale.length() == 2 || locale.length() == 5); [all...] |