Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/external/e2fsprogs/intl/
Dlocalcharset.c286 const char *locale = NULL; in locale_charset() local
293 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
295 if (locale == NULL || locale[0] == '\0') in locale_charset()
297 locale = getenv ("LC_ALL"); in locale_charset()
298 if (locale == NULL || locale[0] == '\0') in locale_charset()
300 locale = getenv ("LC_CTYPE"); in locale_charset()
301 if (locale == NULL || locale[0] == '\0') in locale_charset()
302 locale = getenv ("LANG"); in locale_charset()
309 codeset = locale; in locale_charset()
323 const char *locale; in locale_charset() local
[all …]
Dfinddomain.c50 _nl_find_domain (const char *dirname, char *locale, in _nl_find_domain() argument
89 strlen (dirname) + 1, 0, locale, NULL, NULL, in _nl_find_domain()
117 alias_value = _nl_expand_alias (locale); in _nl_find_domain()
121 locale = strdup (alias_value); in _nl_find_domain()
122 if (locale == NULL) in _nl_find_domain()
126 locale = (char *) malloc (len); in _nl_find_domain()
127 if (locale == NULL) in _nl_find_domain()
130 memcpy (locale, alias_value, len); in _nl_find_domain()
137 mask = _nl_explode_name (locale, &language, &modifier, &territory, in _nl_find_domain()
167 free (locale); in _nl_find_domain()
/external/srec/shared/src/
DESR_Locale.c26 LCHAR* ESR_locale2str(const ESR_Locale locale) in ESR_locale2str() argument
28 switch (locale) { in ESR_locale2str()
43 ESR_ReturnCode ESR_str2locale(const LCHAR* str, ESR_Locale* locale) in ESR_str2locale() argument
46 if (!lstrcasecmp(str, L("EN-US"), &rtn) && !rtn) *locale = ESR_LOCALE_EN_US; in ESR_str2locale()
47 else if (!lstrcasecmp(str, L("FR-FR"), &rtn) && !rtn) *locale = ESR_LOCALE_FR_FR; in ESR_str2locale()
48 else if (!lstrcasecmp(str, L("DE-DE"), &rtn) && !rtn) *locale = ESR_LOCALE_DE_DE; in ESR_str2locale()
49 else if (!lstrcasecmp(str, L("EN-GB"), &rtn) && !rtn) *locale = ESR_LOCALE_EN_GB; in ESR_str2locale()
50 else if (!lstrcasecmp(str, L("IT-IT"), &rtn) && !rtn) *locale = ESR_LOCALE_IT_IT; in ESR_str2locale()
51 else if (!lstrcasecmp(str, L("NL-NL"), &rtn) && !rtn) *locale = ESR_LOCALE_NL_NL; in ESR_str2locale()
52 else if (!lstrcasecmp(str, L("PT-PT"), &rtn) && !rtn) *locale = ESR_LOCALE_PT_PT; in ESR_str2locale()
[all …]
/external/srec/srec/Vocabulary/include/
DSR_VocabularyImpl.h52 ESR_Locale locale; member
99 ESR_ReturnCode SR_VocabularyGetLanguageImpl(SR_Vocabulary* self, ESR_Locale* locale);
114 #define TTP_LANG(locale) locale == ESR_LOCALE_EN_US ? L("enu") : \ argument
115 locale == ESR_LOCALE_FR_FR ? L("fra") : \
116 locale == ESR_LOCALE_DE_DE ? L("deu") : \
117 locale == ESR_LOCALE_EN_GB ? L("eng") : \
118 locale == ESR_LOCALE_JA_JP ? L("jpn") : \
119 locale == ESR_LOCALE_NL_NL ? L("nln") : \
120 locale == ESR_LOCALE_IT_IT ? L("ita") : \
121 locale == ESR_LOCALE_ES_ES ? L("esp") : \
[all …]
DSR_Vocabulary.h68 ESR_ReturnCode(*getLanguage)(struct SR_Vocabulary_t* self, ESR_Locale* locale);
97 SREC_VOCABULARY_API ESR_ReturnCode SR_VocabularyCreate(ESR_Locale locale, SR_Vocabulary** self);
136 SREC_VOCABULARY_API ESR_ReturnCode SR_VocabularyGetLanguage(SR_Vocabulary* self, ESR_Locale* locale
161 SREC_VOCABULARY_API ESR_ReturnCode SR_Vocabulary_etiinf_conv_multichar(ESR_Locale locale, const LCH…
162 SREC_VOCABULARY_API ESR_ReturnCode SR_Vocabulary_etiinf_conv_from_multichar(ESR_Locale locale, cons…
/external/icu4c/common/
Dservls.cpp50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const in get() argument
52 return get(locale, LocaleKey::KIND_ANY, NULL, status); in get()
56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const in get() argument
58 return get(locale, kind, NULL, status); in get()
62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const in get() argument
64 return get(locale, LocaleKey::KIND_ANY, actualReturn, status); in get()
68 ICULocaleService::get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status)… in get() argument
75 UnicodeString locName(locale.getName(), -1, US_INV); in get()
100 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, in registerInstance() argument
104 LocaleUtility::initLocaleFromName(locale, loc); in registerInstance()
[all …]
Dunistr_case.cpp95 const char *locale, in caseMap() argument
141 locale, &errorCode); in caseMap()
145 locale, &errorCode); in caseMap()
152 (UBreakIterator *)titleIter, locale, options, &errorCode); in caseMap()
177 UnicodeString::toLower(const Locale &locale) { in toLower() argument
178 return caseMap(0, locale.getName(), 0, TO_LOWER); in toLower()
187 UnicodeString::toUpper(const Locale &locale) { in toUpper() argument
188 return caseMap(0, locale.getName(), 0, TO_UPPER); in toUpper()
199 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { in toTitle() argument
200 return caseMap(titleIter, locale.getName(), 0, TO_TITLE); in toTitle()
[all …]
Dustrcase.c142 c=map(csm->csp, c, utf16_caseContextIterator, csc, &s, csm->locale, &locCache); in _caseMap()
158 setTempCaseMapLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { in setTempCaseMapLocale() argument
175 if(locale==NULL) { in setTempCaseMapLocale()
176 locale=uloc_getDefault(); in setTempCaseMapLocale()
178 for(i=0; i<4 && (c=locale[i])!=0 && c!='-' && c!='_'; ++i) { in setTempCaseMapLocale()
179 csm->locale[i]=c; in setTempCaseMapLocale()
182 csm->locale[i]=0; /* Up to 3 non-separator characters. */ in setTempCaseMapLocale()
184 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */ in setTempCaseMapLocale()
193 setTempCaseMap(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { in setTempCaseMap() argument
200 if(locale!=NULL && locale[0]==0) { in setTempCaseMap()
[all …]
Dresbund_cnv.cpp26 const Locale& locale, in ResourceBundle() argument
30 constructForLocale(path, locale, error); in ResourceBundle()
42 const Locale& locale, in constructForLocale() argument
46 fResource = ures_open(NULL, locale.getName(), &error); in constructForLocale()
51 fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error); in constructForLocale()
Ducasemap.c35 ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode) { in ucasemap_open() argument
49 ucasemap_setLocale(csm, locale, pErrorCode); in ucasemap_open()
71 return csm->locale; in ucasemap_getLocale()
80 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) { in ucasemap_setLocale() argument
87 length=uloc_getName(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); in ucasemap_setLocale()
88 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || length==sizeof(csm->locale)) { in ucasemap_setLocale()
91 length=uloc_getLanguage(locale, csm->locale, (int32_t)sizeof(csm->locale), pErrorCode); in ucasemap_setLocale()
93 if(length==sizeof(csm->locale)) { in ucasemap_setLocale()
98 ucase_getCaseLocale(csm->locale, &csm->locCache); in ucasemap_setLocale()
100 csm->locale[0]=0; in ucasemap_setLocale()
[all …]
Dservloc.h254 …virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString…
308 const UnicodeString& locale,
313 const Locale& locale,
464 UObject* get(const Locale& locale, UErrorCode& status) const;
470 UObject* get(const Locale& locale, int32_t kind, UErrorCode& status) const;
476 UObject* get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const;
484 UObject* get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status) const;
491 …virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, UErrorCode& statu…
498 …virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, int32_t kind, UEr…
504 …virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, int32_t kind, int…
[all …]
/external/webkit/WebCore/platform/text/mac/
DTextBreakIteratorInternalICUMac.mm32 … RetainPtr<CFPropertyListRef> locale(AdoptCF, CFPreferencesCopyValue(CFSTR("AppleTextBreakLocale"),
34 if (!locale || CFGetTypeID(locale.get()) != CFStringGetTypeID())
36 return static_cast<CFStringRef>(locale.get());
54 static RetainPtr<CFStringRef> canonicalLanguageIdentifier(CFStringRef locale)
56 if (!locale)
59 CFLocaleCreateCanonicalLanguageIdentifierFromString(kCFAllocatorDefault, locale));
61 return locale;
65 static void getLocale(CFStringRef locale, char localeStringBuffer[maxLocaleStringLength])
67 // Empty string means "root locale", and that is what we use if we can't get a preference.
69 if (!locale)
[all …]
/external/icu4c/test/intltest/
Drestest.cpp91 Locale *locale; member
161 if (param[5].locale == NULL) { in ResourceBundleTest()
162 param[0].locale = new Locale("root"); in ResourceBundleTest()
163 param[1].locale = new Locale("te"); in ResourceBundleTest()
164 param[2].locale = new Locale("te", "IN"); in ResourceBundleTest()
165 param[3].locale = new Locale("te", "NE"); in ResourceBundleTest()
166 param[4].locale = new Locale("te", "IN", "NE"); in ResourceBundleTest()
167 param[5].locale = new Locale("ne"); in ResourceBundleTest()
173 if (param[5].locale) { in ~ResourceBundleTest()
176 delete param[idx].locale; in ~ResourceBundleTest()
[all …]
/external/bison/lib/
Dhard-locale.c55 char *locale = strdup (p); in hard_locale() local
56 if (locale) in hard_locale()
62 && strcmp (p, locale) == 0) in hard_locale()
64 && strcmp (p, locale) == 0)) in hard_locale()
68 setlocale (category, locale); in hard_locale()
69 free (locale); in hard_locale()
/external/bluetooth/glib/tests/
Dunicode-caseconv.c17 const char *locale; in main() local
42 locale = strings[0]; in main()
44 if (!locale[0]) in main()
45 locale = "C"; in main()
47 if (strcmp (locale, current_locale) != 0) in main()
49 setlocale (LC_CTYPE, locale); in main()
52 if (strncmp (current_locale, locale, 2) != 0) in main()
54 fprintf (stderr, "Cannot set locale to %s, skipping\n", locale); in main()
/external/icu4c/i18n/unicode/
Dumsg.h220 u_formatMessage(const char *locale,
247 u_vformatMessage( const char *locale,
272 u_parseMessage( const char *locale,
297 u_vparseMessage(const char *locale,
326 u_formatMessageWithError( const char *locale,
355 u_vformatMessageWithError( const char *locale,
383 u_parseMessageWithError(const char *locale,
411 u_vparseMessageWithError(const char *locale,
443 const char *locale,
477 const char* locale);
/external/icu4c/test/perf/ubrkperf/
Dubrkperf.h23 ICUBreakFunction(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUBreakFunction() argument
32 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); in ICUBreakFunction()
35 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); in ICUBreakFunction()
38 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); in ICUBreakFunction()
41 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); in ICUBreakFunction()
59 ICUIsBound(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUIsBound() argument
60 ICUBreakFunction(locale, mode, file, file_len) in ICUIsBound()
86 ICUForward(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUForward() argument
87 ICUBreakFunction(locale, mode, file, file_len) in ICUForward()
/external/apache-http/src/org/apache/http/message/
DBasicHttpResponse.java59 private Locale locale; field in BasicHttpResponse
75 final Locale locale) { in BasicHttpResponse() argument
82 this.locale = (locale != null) ? locale : Locale.getDefault(); in BasicHttpResponse()
130 return this.locale; in getLocale()
184 this.locale = loc; in setLocale()
201 null : this.reasonCatalog.getReason(code, this.locale); in getReason()
/external/icu4c/test/cintltst/
Dcldrtest.c77 UResourceBundle *currentBundle, const char *locale) { in TestKeyInRootRecursive() argument
91 … log_err("Can't open a resource for locale %s. Error: %s\n", locale, u_errorName(errorCode)); in TestKeyInRootRecursive()
103 locale); in TestKeyInRootRecursive()
112 locale, in TestKeyInRootRecursive()
131 locale); in TestKeyInRootRecursive()
145 locale); in TestKeyInRootRecursive()
150 && !(strcmp(locale, "es_US") == 0 && strcmp(subBundleKey, "DateTimeElements") == 0)) in TestKeyInRootRecursive()
155 locale); in TestKeyInRootRecursive()
166 TestKeyInRootRecursive(subRootBundle, rootName, subBundle, locale); in TestKeyInRootRecursive()
185 locale, in TestKeyInRootRecursive()
[all …]
/external/icu4c/test/perf/perldriver/
DPerfFramework.pm64 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) {
100 $locAndData .= " -L $locale";
/external/icu4c/i18n/
Dumsg.cpp38 u_formatMessage(const char *locale, in u_formatMessage() argument
52 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status); in u_formatMessage()
60 u_vformatMessage( const char *locale, in u_vformatMessage() argument
70 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vformatMessage()
77 u_formatMessageWithError(const char *locale, in u_formatMessageWithError() argument
92 …actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,… in u_formatMessageWithError()
100 u_vformatMessageWithError( const char *locale, in u_vformatMessageWithError() argument
111 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); in u_vformatMessageWithError()
123 u_parseMessage( const char *locale, in u_parseMessage() argument
137 u_vparseMessage(locale,pattern,patternLength,source,sourceLength,ap,status); in u_parseMessage()
[all …]
Ducol_sit.cpp106 char locale[loc3066Capacity]; member
208 uprv_strncpy(spec->locale, string, end-string); in _processRFC3066Locale()
400 if(s->locale[0] == 0) { in ucol_sit_calculateWholeLocale()
402 uprv_strcat(s->locale, s->locElements[0]); in ucol_sit_calculateWholeLocale()
405 uprv_strcat(s->locale, "_"); in ucol_sit_calculateWholeLocale()
406 uprv_strcat(s->locale, s->locElements[1]); in ucol_sit_calculateWholeLocale()
410 uprv_strcat(s->locale, "_"); in ucol_sit_calculateWholeLocale()
411 uprv_strcat(s->locale, s->locElements[2]); in ucol_sit_calculateWholeLocale()
413 uprv_strcat(s->locale, "_"); in ucol_sit_calculateWholeLocale()
417 uprv_strcat(s->locale, "_"); in ucol_sit_calculateWholeLocale()
[all …]
/external/srec/srec/Vocabulary/src/
DVocabulary.c25 ESR_ReturnCode SR_VocabularyCreate(ESR_Locale locale, SR_Vocabulary** self) in SR_VocabularyCreate() argument
33 impl->locale = locale; in SR_VocabularyCreate()
34 impl->ttp_lang = TTP_LANG(locale); in SR_VocabularyCreate()
75 ESR_ReturnCode SR_VocabularyGetLanguage(SR_Vocabulary* self, ESR_Locale* locale) in SR_VocabularyGetLanguage() argument
82 return self->getLanguage(self, locale); in SR_VocabularyGetLanguage()
111 static ESR_ReturnCode getTable(ESR_Locale locale, const LCHAR* m[]) in getTable() argument
116 switch (locale) in getTable()
211 ESR_ReturnCode SR_Vocabulary_etiinf_conv_multichar(ESR_Locale locale, const LCHAR* single, LCHAR* m… in SR_Vocabulary_etiinf_conv_multichar() argument
215 ESR_ReturnCode rc = getTable(locale, m); in SR_Vocabulary_etiinf_conv_multichar()
226 ESR_ReturnCode SR_Vocabulary_etiinf_conv_from_multichar(ESR_Locale locale, const LCHAR* multi, LCHA… in SR_Vocabulary_etiinf_conv_from_multichar() argument
[all …]
/external/bison/m4/
Dhard-locale.m41 # hard-locale.m4 serial 6
7 dnl No prerequisites of lib/hard-locale.c.
10 AC_LIBSOURCES([hard-locale.c, hard-locale.h])
11 AC_LIBOBJ([hard-locale])
/external/icu4c/tools/dumpce/
Ddumpce.cpp347 void serialize(const char *locale, UBool tailoredonly) { in serialize() argument
362 fprintf(OUTPUT_, "\nLocale: %s\n", locale); in serialize()
363 fprintf(stdout, "Locale: %s\n", locale); in serialize()
486 const char *locale = (char *)options[2].value; in serialize() local
489 if (strcmp(locale, "all") == 0) { in serialize()
524 locale = ucol_getAvailable(localeindex); in serialize()
529 COLLATOR_ = ucol_open(locale, &error); in serialize()
545 strcat(filename, locale); in serialize()
555 serialize(locale, TRUE); in serialize()
570 locale = ucol_getAvailable(localeindex); in serialize()
[all …]

12345678910>>...14