/external/icu4c/common/ |
locid.cpp | 78 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL; 79 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL; 84 // Deleter function for Locales owned by the default Locale hash table/ 88 delete (U_NAMESPACE_QUALIFIER Locale *) obj; 105 // The cache wasn't created, and only one default locale was created. 123 // If given a NULL string for the locale id, grab the default 125 // (Different from most other locale APIs, where a null name means use 126 // the current ICU default locale.) 134 // put the locale id into a canonical form, 135 // in preparation for looking up this locale in the hash table o [all...] |
locutil.h | 26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); 27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
|
servls.cpp | 30 : fallbackLocale(Locale::getDefault()) 38 , fallbackLocale(Locale::getDefault()) 50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const 52 return get(locale, LocaleKey::KIND_ANY, NULL, status); 56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const 58 return get(locale, kind, NULL, status); 62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) cons [all...] |
/external/stlport/test/unit/ |
locale_test.cpp | 5 # include <locale> 29 typedef void (LocaleTest::*_Test) (const locale&); 33 locale loc; 37 locale tmp(tested_locales[i]); 42 //This locale is not supported. 54 * Check of the 22.1.1.2.7 standard point. Construction of a locale 59 locale loc(static_cast<char const*>(0)); 69 locale loc("yasli_language"); 81 locale loc(very_large_locale_name.c_str()); 95 locale loc(very_large_locale_name.c_str()) [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
locale_test.cpp | 5 # include <locale> 29 typedef void (LocaleTest::*_Test) (const locale&); 33 locale loc; 37 locale tmp(tested_locales[i]); 42 //This locale is not supported. 54 * Check of the 22.1.1.2.7 standard point. Construction of a locale 59 locale loc(static_cast<char const*>(0)); 69 locale loc("yasli_language"); 81 locale loc(very_large_locale_name.c_str()); 95 locale loc(very_large_locale_name.c_str()) [all...] |
/ndk/tests/device/test-stlport/unit/ |
locale_test.cpp | 5 # include <locale> 29 typedef void (LocaleTest::*_Test) (const locale&); 33 locale loc; 37 locale tmp(tested_locales[i]); 42 //This locale is not supported. 54 * Check of the 22.1.1.2.7 standard point. Construction of a locale 59 locale loc(static_cast<char const*>(0)); 69 locale loc("yasli_language"); 81 locale loc(very_large_locale_name.c_str()); 95 locale loc(very_large_locale_name.c_str()) [all...] |
/libcore/luni/src/main/java/java/util/ |
Locale.java | 31 * {@code Locale} represents a language/country/variant combination. Locales are used to 43 * rewriting happens even if you construct your own {@code Locale} object, not just for 47 * <p>This class' constructors do no error checking. You can create a {@code Locale} for languages 51 * <p>Note that locale data is not necessarily available for any of the locales pre-defined as 52 * constants in this class except for en_US, which is the only locale Java guarantees is always 61 * <p>You can use {@code getDefault} to get an appropriate locale for the <i>user</i> of 65 * <a name="locale_data"><h3>Locale data</h3></a> 66 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (using 77 * <a name="default_locale"><h3>Be wary of the default locale</h3></a [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
InputLanguageSelection.java | 33 import java.util.Locale; 58 Locale locale; field in class:InputLanguageSelection.Loc 60 public Loc(String label, Locale locale) { 62 this.locale = locale; 87 Locale locale = mAvailableLanguages.get(i).locale; local 88 pref.setTitle(LanguageSwitcher.toTitleCase(locale.getDisplayName(locale), locale)); local 149 Locale locale = mAvailableLanguages.get(i).locale; local [all...] |
/external/webkit/WebCore/platform/text/mac/ |
TextBreakIteratorInternalICUMac.mm | 32 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 [all...] |
/external/icu4c/common/unicode/ |
locid.h | 41 * \brief C++ API: Locale ID object. 45 * A <code>Locale</code> object represents a specific geographical, political, 46 * or cultural region. An operation that requires a <code>Locale</code> to perform 47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 49 * is a locale-sensitive operation--the number should be formatted 53 * The Locale class is not suitable for subclassing. 56 * You can create a <code>Locale</code> object using the constructor in 60 * Locale( const char* language, 90 * Because a <code>Locale</code> object is just an identifier for a region [all...] |
/external/icu4c/i18n/unicode/ |
locdspnm.h | 15 * \brief C++ API: Provides display names of Locale and its components. 29 * values, see Locale. 42 * {@link #createInstance(const Locale& locale, UDialectHandling dialectHandling)} 44 * @param locale the display locale 48 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale); 52 * formatted for the provided locale, using the provided 55 * @param locale the display local [all...] |
/external/chromium/third_party/icu/public/common/unicode/ |
locid.h | 41 * \brief C++ API: Locale ID object. 45 * A <code>Locale</code> object represents a specific geographical, political, 46 * or cultural region. An operation that requires a <code>Locale</code> to perform 47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 49 * is a locale-sensitive operation--the number should be formatted 53 * The Locale class is not suitable for subclassing. 56 * You can create a <code>Locale</code> object using the constructor in 60 * Locale( const char* language, 90 * Because a <code>Locale</code> object is just an identifier for a region [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/ |
locale_classes.h | 0 // Locale support -*- C++ -*- 47 // 22.1.1 Class locale 51 * The locale class is first a class wrapper for C library locales. It is 52 * also an extensible container for user-defined localization. A locale is 56 * Constructing C++ locales does not change the C library locale. 59 * through a reference counting implementation of the locale class. 61 class locale class 65 /// Definition of locale::category. 78 has_facet(const locale&) throw(); 82 use_facet(const locale&) [all...] |
/cts/tests/src/android/text/format/cts/ |
LocaleUtils.java | 21 import java.util.Locale; 25 /** Return whether or not the given locale is the device's current locale. */ 26 public static boolean isCurrentLocale(Context context, Locale locale) { 27 // TODO: Change the locale on the device using public API if it becomes available. 28 Locale currentLocale = context.getResources().getConfiguration().locale; 29 return locale.equals(currentLocale);
|
/external/chromium/third_party/icu/source/common/ |
locutil.h | 26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); 27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
|
servls.cpp | 30 : fallbackLocale(Locale::getDefault()) 38 , fallbackLocale(Locale::getDefault()) 50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const 52 return get(locale, LocaleKey::KIND_ANY, NULL, status); 56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const 58 return get(locale, kind, NULL, status); 62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) cons [all...] |
locid.cpp | 44 static U_NAMESPACE_QUALIFIER Locale* availableLocaleList = NULL; 79 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL; 80 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL; 85 // Deleter function for Locales owned by the default Locale hash table/ 89 delete (U_NAMESPACE_QUALIFIER Locale *) obj; 112 // The cache wasn't created, and only one default locale was created. 130 // If given a NULL string for the locale id, grab the default 132 // (Different from most other locale APIs, where a null name means use 133 // the current ICU default locale.) 141 // put the locale id into a canonical form [all...] |
resbund_cnv.cpp | 26 const Locale& locale, 30 constructForLocale(path, locale, error); 37 constructForLocale(path, Locale::getDefault(), error); 42 const Locale& locale, 46 fResource = ures_open(NULL, locale.getName(), &error); 51 fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error);
|
/external/chromium/third_party/icu/source/i18n/ |
measfmt.cpp | 22 MeasureFormat* U_EXPORT2 MeasureFormat::createCurrencyFormat(const Locale& locale, 26 fmt = new CurrencyFormat(locale, ec); 39 return MeasureFormat::createCurrencyFormat(Locale::getDefault(), ec);
|
/external/icu4c/i18n/ |
measfmt.cpp | 22 MeasureFormat* U_EXPORT2 MeasureFormat::createCurrencyFormat(const Locale& locale, 26 fmt = new CurrencyFormat(locale, ec); 39 return MeasureFormat::createCurrencyFormat(Locale::getDefault(), ec);
|
/libcore/support/src/test/java/tests/support/ |
Support_Locale.java | 22 import java.util.Locale; 27 * Helper class for {@link Locale} tests 34 * @param requiredLocales - the set of {@link Locale} to check 38 public static boolean areLocalesAvailable(Locale... requiredLocales) { 39 Locale[] availableLocales = Locale.getAvailableLocales(); 40 Set<Locale> localeSet = new HashSet<Locale>(Arrays.asList(availableLocales)); 41 for (Locale requiredLocale : requiredLocales) {
|
/external/stlport/src/ |
locale_impl.h | 22 #include <clocale> // C locale header file. 25 #include <locale> 33 //If we are using pointer specialization, vector<locale::facet*> will use 35 _STLP_EXPORT_TEMPLATE_CLASS allocator<locale::facet*>; 39 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<locale::facet**, locale::facet*, allocator<locale::facet*> >; 40 _STLP_EXPORT_TEMPLATE_CLASS _Vector_base<locale::facet*, allocator<locale::facet*> >; 47 _STLP_EXPORT_TEMPLATE_CLASS __construct_checker<_STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::facet*> > > [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
locale_impl.h | 22 #include <clocale> // C locale header file. 25 #include <locale> 33 //If we are using pointer specialization, vector<locale::facet*> will use 35 _STLP_EXPORT_TEMPLATE_CLASS allocator<locale::facet*>; 39 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<locale::facet**, locale::facet*, allocator<locale::facet*> >; 40 _STLP_EXPORT_TEMPLATE_CLASS _Vector_base<locale::facet*, allocator<locale::facet*> >; 47 _STLP_EXPORT_TEMPLATE_CLASS __construct_checker<_STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::facet*> > > [all...] |
/libcore/luni/src/test/java/com/ibm/icu4jni/util/ |
ICUTest.java | 19 import java.util.Locale; 45 // through Locale.toString. 46 assertEquals(Locale.ENGLISH, ICU.localeFromString("en")); 47 assertEquals(Locale.ENGLISH, ICU.localeFromString("en_")); 48 assertEquals(Locale.ENGLISH, ICU.localeFromString("en__")); 49 assertEquals(Locale.US, ICU.localeFromString("en_US")); 50 assertEquals(Locale.US, ICU.localeFromString("en_US_")); 51 assertEquals(new Locale("", "US", ""), ICU.localeFromString("_US")); 52 assertEquals(new Locale("", "US", ""), ICU.localeFromString("_US_")); 53 assertEquals(new Locale("", "", "POSIX"), ICU.localeFromString("__POSIX")) [all...] |
/external/e2fsprogs/misc/ |
nls-enable.h | 3 #include <locale.h> 14 #define LOCALEDIR "/usr/share/locale"
|