HomeSort by relevance Sort by last modified time
    Searched full:locale (Results 276 - 300 of 2270) sorted by null

<<11121314151617181920>>

  /development/samples/ApiDemos/src/com/example/android/apis/nfc/
ForegroundNdefPush.java 29 import java.util.Locale;
39 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) {
40 byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII"));
72 new NdefRecord[] { newTextRecord("NDEF Push Sample", Locale.ENGLISH, true)});
  /external/icu4c/samples/legacy/
oldcol.cpp 28 int32_t getSortKey_legacy(const char *locale, const UChar *string, int32_t sLen, uint8_t *buffer, int32_t bLen) {
30 UCollator *coll = ucol_open(locale, &status);
58 void initCollator_legacy(const char *locale) {
60 compareCollator = ucol_open(locale, &status);
64 fprintf(stderr, "initCollator_legacy(%s): error opening collator, %s!\n", locale, u_errorName(status));
  /packages/apps/Tag/src/com/android/apps/tag/message/
ParsedNdefMessage.java 28 import java.util.Locale;
50 * most appropriate for the given {@code locale}.
52 public String getSnippet(Context context, Locale locale) {
80 return record.getSnippet(context, locale);
  /packages/apps/Tag/tests/src/com/android/apps/tag/record/
TextRecordTest.java 25 import java.util.Locale;
45 NdefRecord record = TextRecord.newTextRecord("hello", Locale.US);
52 NdefRecord record = TextRecord.newTextRecord("Hello", Locale.US, false);
59 NdefRecord record = TextRecord.newTextRecord(I18N, Locale.CHINA, true);
66 NdefRecord record = TextRecord.newTextRecord(I18N, Locale.CHINA, false);
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/
ctype.h 68 In the thread-specific locale model (see `uselocale' in <locale.h>)
220 /* The concept of one static locale per category is not very well
225 the functions using locale data exist which have an additional
231 /* Structure for reentrant locale using functions. This is an
236 take as an argument a handle for the locale which shall be used. */
237 # define __isctype_l(c, type, locale) \
238 ((locale)->__ctype_b[(int) (c)] & (unsigned short int) type)
244 int isCHARACTERISTIC(int c, locale_t *locale);
262 /* Return the lowercase version of C in locale L. *
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
CalendarTest.java 26 import java.util.Locale;
36 Locale defaultLocale;
482 private static final Locale[] locales = new Locale[] { Locale.getDefault(),
483 Locale.US, Locale.UK, Locale.TAIWAN, Locale.PRC, Locale.KOREA
    [all...]
ListResourceBundleTest.java 27 import java.util.Locale;
60 Locale.setDefault(new Locale("en", "US"));
61 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
100 Locale.setDefault(new Locale("en", "US"));
101 bundle = (ListResourceBundle)ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
  /external/apache-http/src/org/apache/http/
HttpResponse.java 35 import java.util.Locale;
69 * {@link #getLocale locale}.
91 * based on the current {@link #getLocale locale}. It can be set
141 * Obtains the locale of this response.
142 * The locale is used to determine the reason phrase
146 * @return the locale of this response, never <code>null</code>
148 Locale getLocale();
151 * Changes the locale of this response.
153 * according to the status code and new locale.
155 * @param loc the new locale
    [all...]
  /external/chromium/third_party/icu/source/io/
ufile.c 47 const char *locale,
83 /* if locale is 0, use the default */
84 if(u_locbund_init(&result->str.fBundle, locale) == 0) {
112 const char *locale,
121 result = u_finit(systemFile, locale, codepage);
138 const char *locale)
157 /* if locale is 0, use the default */
158 if(u_locbund_init(&result->str.fBundle, locale) == 0) {
243 const char *locale)
247 return u_locbund_init(&file->str.fBundle, locale) == 0 ? -1 : 0
    [all...]
  /external/guava/src/com/google/common/base/
CaseFormat.java 19 import java.util.Locale;
88 case UPPER_UNDERSCORE: return s.replace("-", "_").toUpperCase(Locale.US);
94 case UPPER_UNDERSCORE: return s.toUpperCase(Locale.US);
99 case LOWER_HYPHEN: return s.replace("_", "-").toLowerCase(Locale.US);
100 case LOWER_UNDERSCORE: return s.toLowerCase(Locale.US);
129 case LOWER_CAMEL: return word.toLowerCase(Locale.US);
136 case LOWER_HYPHEN: return word.toLowerCase(Locale.US);
137 case LOWER_UNDERSCORE: return word.toLowerCase(Locale.US);
140 case UPPER_UNDERSCORE: return word.toUpperCase(Locale.US);
146 return (word.length() < 2) ? word.toUpperCase(Locale.US
    [all...]
  /external/chromium/third_party/icu/source/test/intltest/
tmsgfmt.cpp 64 Locale locale[] = { local
65 Locale("ar", "", ""),
66 Locale("be", "", ""),
67 Locale("bg", "", ""),
68 Locale("ca", "", ""),
69 Locale("cs", "", ""),
70 Locale("da", "", ""),
71 Locale("de", "", ""),
72 Locale("de", "AT", "")
    [all...]
  /external/chromium/third_party/icu/source/i18n/
windtfmt.h 43 Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, UErrorCode &status);
61 * calendar for the specified or default locale is used. The caller should
71 * calendar for the specified or default locale is used.
128 UnicodeString* getTimeDateFormat(const Calendar *cal, const Locale *locale, UErrorCode &status) const;
133 const Locale *fLocale;
unum.cpp 38 const char* locale,
52 if(locale == 0)
55 retVal = (UNumberFormat*)NumberFormat::createInstance(Locale(locale),
60 if(locale == 0)
63 retVal = (UNumberFormat*)NumberFormat::createCurrencyInstance(Locale(locale),
68 if(locale == 0)
71 retVal = (UNumberFormat*)NumberFormat::createPercentInstance(Locale(locale),
    [all...]
plurfmt.cpp 37 init(NULL, Locale::getDefault(), status);
40 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) {
45 init(&rules, Locale::getDefault(), status);
48 PluralFormat::PluralFormat(const Locale& loc, const PluralRules& rules, UErrorCode& status) {
53 init(NULL, Locale::getDefault(), status);
57 PluralFormat::PluralFormat(const Locale& loc, const UnicodeString& pat, UErrorCode& status) {
63 init(&rules, Locale::getDefault(), status);
67 PluralFormat::PluralFormat(const Locale& loc, const PluralRules& rules, const UnicodeString& pat, UErrorCode& status) {
74 locale = other.locale;
    [all...]
  /external/icu4c/i18n/
windtfmt.h 43 Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, UErrorCode &status);
61 * calendar for the specified or default locale is used. The caller should
71 * calendar for the specified or default locale is used.
128 UnicodeString* getTimeDateFormat(const Calendar *cal, const Locale *locale, UErrorCode &status) const;
133 const Locale *fLocale;
unum.cpp 38 const char* locale,
52 if(locale == 0)
55 retVal = (UNumberFormat*)NumberFormat::createInstance(Locale(locale),
60 if(locale == 0)
63 retVal = (UNumberFormat*)NumberFormat::createCurrencyInstance(Locale(locale),
68 if(locale == 0)
71 retVal = (UNumberFormat*)NumberFormat::createPercentInstance(Locale(locale),
    [all...]
plurfmt.cpp 37 init(NULL, Locale::getDefault(), status);
40 PluralFormat::PluralFormat(const Locale& loc, UErrorCode& status) {
45 init(&rules, Locale::getDefault(), status);
48 PluralFormat::PluralFormat(const Locale& loc, const PluralRules& rules, UErrorCode& status) {
53 init(NULL, Locale::getDefault(), status);
57 PluralFormat::PluralFormat(const Locale& loc, const UnicodeString& pat, UErrorCode& status) {
63 init(&rules, Locale::getDefault(), status);
67 PluralFormat::PluralFormat(const Locale& loc, const PluralRules& rules, const UnicodeString& pat, UErrorCode& status) {
74 locale = other.locale;
    [all...]
  /external/stlport/stlport/stl/
_collate.h 43 class _STLP_CLASS_DECLSPEC collate<char> : public locale::facet {
48 explicit collate(size_t __refs = 0) : locale::facet(__refs) {}
62 static _STLP_STATIC_DECLSPEC locale::id id;
79 class _STLP_CLASS_DECLSPEC collate<wchar_t> : public locale::facet {
84 explicit collate(size_t __refs = 0) : locale::facet(__refs) {}
98 static _STLP_STATIC_DECLSPEC locale::id id;
162 __locale_do_operator_call (const locale& __loc,
  /libcore/luni/src/test/java/libcore/java/text/
NumberFormatTest.java 25 import java.util.Locale;
40 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);
68 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar"));
70 NumberFormat integerFormat = NumberFormat.getIntegerInstance(new Locale("ar"));
75 Locale arabic = new Locale("ar");
85 NumberFormat nf = NumberFormat.getPercentInstance(Locale.US);
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_collate.h 43 class _STLP_CLASS_DECLSPEC collate<char> : public locale::facet {
48 explicit collate(size_t __refs = 0) : locale::facet(__refs) {}
62 static _STLP_STATIC_DECLSPEC locale::id id;
79 class _STLP_CLASS_DECLSPEC collate<wchar_t> : public locale::facet {
84 explicit collate(size_t __refs = 0) : locale::facet(__refs) {}
98 static _STLP_STATIC_DECLSPEC locale::id id;
162 __locale_do_operator_call (const locale& __loc,
  /libcore/luni/src/main/java/java/text/
DateFormat.java 26 import java.util.Locale;
38 * formatters based on the default or a given locale and a number of formatting
43 * {@code DateFormat} helps you to format and parse dates for any locale. Your
44 * code can be completely independent of the locale conventions for months, days
47 * To format a date for the current Locale, use one of the static factory
71 * To format a number for a different locale, specify it in the call to
76 * DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE);
95 * FULL. The exact result depends on the locale, but generally:
404 * <p>Note that Android does not support user-supplied locale service providers.
406 public static Locale[] getAvailableLocales()
    [all...]
  /frameworks/base/core/java/android/content/res/
Configuration.java 23 import java.util.Locale;
28 * user-specified configuration options (locale and scaling) as well
49 * Current user preference for the locale.
51 public Locale locale; field in class:Configuration
54 * Locale should persist on setting. This is hidden because it is really
230 if (o.locale != null) {
231 locale = (Locale) o.locale.clone()
    [all...]
  /external/chromium/third_party/icu/source/common/
brkiter.cpp 51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status)
70 // Get the locale
123 // If there is a result, set the valid locale and actual locale, and the kind
149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status)
158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status)
167 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status)
176 BreakIterator::createSentenceInstance(const Locale& key, UErrorCode& status)
185 BreakIterator::createTitleInstance(const Locale& key, UErrorCode& status)
193 const Locale* U_EXPORT
    [all...]
  /external/apache-http/src/org/apache/http/impl/
DefaultHttpResponseFactory.java 34 import java.util.Locale;
91 final Locale loc = determineLocale(context);
104 final Locale loc = determineLocale(context);
110 * Determines the locale of the response.
111 * The implementation in this class always returns the default locale.
113 * @param context the context from which to determine the locale, or
114 * <code>null</code> to use the default locale
116 * @return the locale for the response, never <code>null</code>
118 protected Locale determineLocale(HttpContext context) {
119 return Locale.getDefault()
    [all...]
  /external/chromium/third_party/icu/public/common/unicode/
ucat.h 85 * @param locale the locale for which we want to open the resource. If
86 * NULL, the default ICU locale will be used (see uloc_getDefault). If
87 * strlen(locale) == 0, the root locale will be used.
90 * U_USING_FALLBACK_WARNING indicates that a fallback locale was
93 * default locale data or root locale data was used; neither the
94 * requested locale nor any of its fallback locales were found.
105 u_catopen(const char* name, const char* locale, UErrorCode* ec)
    [all...]

Completed in 645 milliseconds

<<11121314151617181920>>