Searched defs:locale (Results 276 - 300 of 549) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/third_party/icu/source/test/intltest/
H A Dalphaindextst.cpp270 // Labels A - Z for English locale
377 assertEquals("bucket label vs. immutable: locale=" + UnicodeString(localeName) +
523 // ends up with a collator for the default locale
526 // to fall back to the default locale.
535 const char *locale = localeAndIndexCharacters[0]; local
538 AlphabeticIndex index(locale, status);
545 assertEquals(locale,
548 logln(locale + UnicodeString(": ") + actualIndexCharacters);
H A Dplurfmts.cpp54 Locale locale = Locale::getDefault(); local
66 dataerrln("ERROR: Could not create NumberFormat instance with default locale ");
74 plFmt[2] = new PluralFormat(locale, status[2]);
75 plFmt[3] = new PluralFormat(locale, *plRules, status[3]);
78 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]);
79 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]);
96 plFmt[1]= new PluralFormat(locale, status[1]);
111 plFmt[0]= new PluralFormat(locale, status[0]);
227 dataerrln("ERROR: Could not create NumberFormat instance with default locale ");
247 // ======= Test set locale
754 const char *locale = localeArray[i]; local
[all...]
H A Dstrcase.cpp141 /* lowercase with root locale */
147 errln("error in toLower(root locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerRoot, (int32_t)(sizeof(lowerRoot)/U_SIZEOF_UCHAR)) + "\"");
150 /* lowercase with turkish locale */
156 errln("error in toLower(turkish locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerTurkish, (int32_t)(sizeof(lowerTurkish)/U_SIZEOF_UCHAR)) + "\"");
159 /* uppercase with root locale */
165 errln("error in toUpper(root locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, upperRoot, (int32_t)(sizeof(upperRoot)/U_SIZEOF_UCHAR)) + "\"");
168 /* uppercase with turkish locale */
174 errln("error in toUpper(turkish locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, upperTurkish, (int32_t)(sizeof(upperTurkish)/U_SIZEOF_UCHAR)) + "\"");
177 /* uppercase a short string with root locale */
183 errln("error in toUpper(root locale)
458 UnicodeString locale, input, output, optionsString, result; local
[all...]
/external/chromium_org/third_party/icu/source/tools/genrb/
H A Dderb.c181 char locale[64]; local
207 uprv_strncpy(locale, p, q - p);
208 locale[q - p] = 0;
237 bundle = ures_openDirect(thename, locale, &status);
239 bundle = ures_open(fromICUData ? 0 : inputDir, locale, &status);
247 if (!locale[0] || !tostdout) {
315 u_fprintf(out, "the ICU internal %s locale", locale);
320 if (locale[0]) {
321 u_fprintf(out, "%s", locale);
[all...]
/external/chromium_org/v8/src/
H A Di18n.cc91 // Create a calendar using locale, and apply time zone to it.
97 // to the locale as Unicode extension (if they were specified at all).
172 // to assume that for given locale NumberingSystem constructor produces the
189 // Set the locale
195 JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
199 // This would never happen, since we got the locale from ICU.
200 JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("locale"),
229 // to the locale as Unicode extension (if it was specified at all).
359 // to assume that for given locale NumberingSystem constructor produces the
416 // Set the locale
678 InitializeDateTimeFormat( Isolate* isolate, Handle<String> locale, Handle<JSObject> options, Handle<JSObject> resolved) argument
753 InitializeNumberFormat( Isolate* isolate, Handle<String> locale, Handle<JSObject> options, Handle<JSObject> resolved) argument
814 InitializeCollator( Isolate* isolate, Handle<String> locale, Handle<JSObject> options, Handle<JSObject> resolved) argument
871 InitializeBreakIterator( Isolate* isolate, Handle<String> locale, Handle<JSObject> options, Handle<JSObject> resolved) argument
[all...]
/external/icu/icu4c/source/common/
H A Ducnv_cnv.h56 const char *pkg, *name, *locale; member in struct:__anon21761
/external/icu/icu4c/source/i18n/
H A Dcurrpinf.cpp71 CurrencyPluralInfo::CurrencyPluralInfo(const Locale& locale, UErrorCode& status) argument
75 initialize(locale, status);
134 std::cout << "same locale\n";
H A Ddatefmt.cpp355 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) argument
360 int32_t count = locale.getKeywordValue("compat", buffer, sizeof(buffer), status);
362 // if the locale has "@compat=host", create a host-specific DateFormat...
364 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status);
376 RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), locale, status);
383 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status);
388 // the DateFormatSymbols for this locale.
390 f = new SimpleDateFormat(locale, status);
406 // Even if root has the correct date format for this locale,
407 // it's still a valid locale (w
[all...]
H A Dreldatefmt.cpp53 // RelativeDateTimeFormatter specific data for a single locale
275 Locale locale(localeId);
276 if (uprv_strcmp("en", locale.getLanguage()) == 0) {
471 // Creates RelativeDateTimeFormatter specific data for a given locale
513 const char *locale,
521 gCache->get(locale, ptr, status);
531 const Locale& locale, UErrorCode& status)
533 init(locale, NULL, status);
537 const Locale& locale, NumberFormat *nfToAdopt, UErrorCode& status)
539 init(locale, nfToAdop
512 getFromCache( const char *locale, const RelativeDateTimeCacheData *&ptr, UErrorCode &status) argument
530 RelativeDateTimeFormatter( const Locale& locale, UErrorCode& status) argument
536 RelativeDateTimeFormatter( const Locale& locale, NumberFormat *nfToAdopt, UErrorCode& status) argument
621 init( const Locale &locale, NumberFormat *nfToAdopt, UErrorCode &status) argument
[all...]
H A Dreldtfmt.cpp73 const Locale& locale, UErrorCode& status) :
75 fDateStyle(dateStyle), fLocale(locale), fDayMin(0), fDayMax(0), fDatesLen(0), fDates(NULL),
94 df = createDateInstance((EStyle)baseDateStyle, locale);
102 df = createTimeInstance((EStyle)timeStyle, locale);
111 df = createTimeInstance((EStyle)timeStyle, locale);
121 initializeCalendar(NULL, locale, status);
586 RelativeDateFormat::initializeCalendar(TimeZone* adoptZone, const Locale& locale, UErrorCode& status) argument
589 fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status);
72 RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, UErrorCode& status) argument
H A Dtznames.cpp102 TimeZoneNamesDelegate(const Locale& locale, UErrorCode& status);
129 TimeZoneNamesDelegate::TimeZoneNamesDelegate(const Locale& locale, UErrorCode& status) { argument
149 const char *key = locale.getName();
155 tznames = new TimeZoneNamesImpl(locale, status);
293 TimeZoneNames::createInstance(const Locale& locale, UErrorCode& status) { argument
294 return new TimeZoneNamesDelegate(locale, status);
H A Ducol_res.cpp136 CollationLoader::loadTailoring(const Locale &locale, Locale &validLocale, UErrorCode &errorCode) { argument
139 const char *name = locale.getName();
164 // Fetch the collation type from the locale ID and the default type from the data.
166 int32_t typeLength = locale.getKeywordValue("collation", type, LENGTHOF(type) - 1, errorCode);
271 // For the valid locale, suppress the default type.
277 // For the actual locale, suppress the default type *according to the actual locale*.
280 // For the valid locale "zh_Hant" we need to suppress stroke.
281 // For the actual locale "zh" we need to suppress pinyin instead.
283 // Opening a bundle for the actual locale shoul
436 ucol_getKeywordValuesForLocale(const char* , const char* locale, UBool , UErrorCode* status) argument
550 ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity, const char* keyword, const char* locale, UBool* isAvailable, UErrorCode* status) argument
[all...]
H A Dumsg.cpp59 u_formatMessage(const char *locale, argument
73 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status);
81 u_vformatMessage( const char *locale, argument
91 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status);
98 u_formatMessageWithError(const char *locale, argument
113 actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,status);
121 u_vformatMessageWithError( const char *locale, argument
132 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status);
144 u_parseMessage( const char *locale, argument
158 u_vparseMessage(locale,patter
164 u_vparseMessage(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UErrorCode *status) argument
180 u_parseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UParseError *error, UErrorCode *status, ...) argument
201 u_vparseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UParseError *error, UErrorCode* status) argument
224 umsg_open( const UChar *pattern, int32_t patternLength, const char *locale, UParseError *parseError, UErrorCode *status) argument
291 umsg_setLocale(UMessageFormat *fmt, const char* locale) argument
[all...]
H A Dunum.cpp41 const char* locale,
58 retVal = NumberFormat::createInstance(Locale(locale), style, *status);
70 DecimalFormatSymbols *syms = new DecimalFormatSymbols(Locale(locale), *status);
96 retVal = new RuleBasedNumberFormat(pat, Locale(locale), *parseErr, *status);
100 retVal = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale(locale), *status);
104 retVal = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale(locale), *status);
108 retVal = new RuleBasedNumberFormat(URBNF_DURATION, Locale(locale), *status);
112 retVal = new RuleBasedNumberFormat(URBNF_NUMBERING_SYSTEM, Locale(locale), *status);
38 unum_open( UNumberFormatStyle style, const UChar* pattern, int32_t patternLength, const char* locale, UParseError* parseErr, UErrorCode* status) argument
H A Dwindtfmt.cpp55 UnicodeString* Win32DateFormat::getTimeDateFormat(const Calendar *cal, const Locale *locale, UErrorCode &status) const argument
59 const char *base = locale->getBaseName();
96 Win32DateFormat::Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, UErrorCode &status) argument
97 : DateFormat(), fDateTimeMsg(NULL), fTimeStyle(timeStyle), fDateStyle(dateStyle), fLocale(locale), fZoneID()
100 fLCID = locale.getLCID();
103 adoptCalendar(Calendar::createInstance(locale, status));
/external/icu/icu4c/source/layoutex/layout/
H A DParagraphLayout.h372 * @param localeRuns is a pointer to a <code>LocaleRuns</code> object representing locale runs.
374 * pointer is <code>NULL</code> the default locale will be used for all of the text.
561 const Locale *locale; member in struct:ParagraphLayout::StyleRunInfo
589 le_int32 getLanguageCode(const Locale *locale);
/external/icu/icu4c/source/test/cintltst/
H A Dcmsgtst.c868 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, argument
874 len = u_vformatMessage(locale, testCasePattern, patternLength, result, resultLength, ap, status);
928 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, argument
933 u_vparseMessage(locale, pattern, patternLength, source, sourceLength, ap, status);
1029 const char* locale = "hi_IN"; local
1065 umsg_setLocale(f1,locale);
1068 if(strcmp(retLoc,locale)!=0)
1070 log_err("umsg_setLocale and umsg_getLocale methods failed. Expected:%s Got: %s \n", locale, retLoc);
H A Dudatpg_test.c78 /* Open a DateTimePatternGenerator for the default locale. */
254 static const char locale[]= "fr"; local
343 generator=udatpg_open(locale, &status);
351 formatter = udat_open(UDAT_PATTERN, UDAT_PATTERN, locale, timeZoneGMT, -1,
376 const char * locale; member in struct:DTPtnGenOptionsData
416 UDateTimePatternGenerator * dtpgen = udatpg_open(testDataPtr->locale, &status);
426 log_err("ERROR udatpg_getBestPatternWithOptions, locale %s, skeleton %s, options 0x%04X, expected pattern %s, got %s, status %d\n",
427 testDataPtr->locale, u_austrncpy(skelBytes,testDataPtr->skel,kTestOptionsPatLenMax), testDataPtr->options,
433 log_data_err("ERROR udatpg_open failed for locale %s : %s - (Are you missing data?)\n", testDataPtr->locale, myErrorNam
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dalphaindextst.cpp272 // Labels A - Z for English locale
379 assertEquals("bucket label vs. immutable: locale=" + UnicodeString(localeName) +
525 // ends up with a collator for the default locale
528 // to fall back to the default locale.
537 const char *locale = localeAndIndexCharacters[0]; local
540 AlphabeticIndex index(locale, status);
547 assertEquals(locale,
550 logln(locale + UnicodeString(": ") + actualIndexCharacters);
H A Dplurfmts.cpp54 Locale locale = Locale::getDefault(); local
66 dataerrln("ERROR: Could not create NumberFormat instance with default locale ");
74 plFmt[2] = new PluralFormat(locale, status[2]);
75 plFmt[3] = new PluralFormat(locale, *plRules, status[3]);
78 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]);
79 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]);
96 plFmt[1]= new PluralFormat(locale, status[1]);
111 plFmt[0]= new PluralFormat(locale, status[0]);
227 dataerrln("ERROR: Could not create NumberFormat instance with default locale ");
247 // ======= Test set locale
754 const char *locale = localeArray[i]; local
[all...]
H A Dreldatefmttest.cpp191 const Locale& locale,
195 const Locale& locale,
329 const Locale& locale,
333 RelativeDateTimeFormatter fmt(locale, status);
338 RunTest(fmt, expectedResults, expectedResultLength, locale.getName());
342 const Locale& locale,
346 RelativeDateTimeFormatter fmt(locale, status);
351 RunTest(fmt, expectedResults, expectedResultLength, locale.getName());
328 RunTest( const Locale& locale, const WithQuantityExpected* expectedResults, int32_t expectedResultLength) argument
341 RunTest( const Locale& locale, const WithoutQuantityExpected* expectedResults, int32_t expectedResultLength) argument
H A Dstrcase.cpp141 /* lowercase with root locale */
147 errln("error in toLower(root locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerRoot, (int32_t)(sizeof(lowerRoot)/U_SIZEOF_UCHAR)) + "\"");
150 /* lowercase with turkish locale */
156 errln("error in toLower(turkish locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerTurkish, (int32_t)(sizeof(lowerTurkish)/U_SIZEOF_UCHAR)) + "\"");
159 /* uppercase with root locale */
165 errln("error in toUpper(root locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, upperRoot, (int32_t)(sizeof(upperRoot)/U_SIZEOF_UCHAR)) + "\"");
168 /* uppercase with turkish locale */
174 errln("error in toUpper(turkish locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, upperTurkish, (int32_t)(sizeof(upperTurkish)/U_SIZEOF_UCHAR)) + "\"");
177 /* uppercase a short string with root locale */
183 errln("error in toUpper(root locale)
458 UnicodeString locale, input, output, optionsString, result; local
[all...]
/external/icu/icu4c/source/tools/genrb/
H A Dderb.c181 char locale[64]; local
207 uprv_strncpy(locale, p, q - p);
208 locale[q - p] = 0;
237 bundle = ures_openDirect(thename, locale, &status);
239 bundle = ures_open(fromICUData ? 0 : inputDir, locale, &status);
247 if (!locale[0] || !tostdout) {
315 u_fprintf(out, "the ICU internal %s locale", locale);
320 if (locale[0]) {
321 u_fprintf(out, "%s", locale);
[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/robolectric/src/main/java/com/xtremelabs/robolectric/
H A DRobolectricConfig.java34 private String locale = ""; field in class:RobolectricConfig
253 public void setLocale( String locale ){
254 this.oldLocale = this.locale;
255 this.locale = locale;
259 return this.locale;
263 return !locale.equals( oldLocale );

Completed in 517 milliseconds

<<11121314151617181920>>