/external/webkit/Source/WebCore/platform/qt/ |
LanguageQt.cpp | 37 QLocale locale; local 38 return locale.name().replace(QLatin1Char('_'), QLatin1Char('-'));
|
/external/bison/lib/ |
hard-locale.c | 1 /* hard-locale.c -- Determine whether a locale is hard. 24 #include "hard-locale.h" 26 #include <locale.h> 38 /* Return true if the current CATEGORY locale is hard, i.e. if you 55 char *locale = strdup (p); local 56 if (locale) 58 /* Temporarily set the locale to the "C" and "POSIX" locales 60 or the other is the caller's locale. */ 62 && strcmp (p, locale) == 0 [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
LocaleUtilTest.java | 19 import java.util.Locale; 32 args = {Locale.class} 39 LocaleUtil.getLayoutDirectionFromLocale(Locale.ENGLISH)); 41 LocaleUtil.getLayoutDirectionFromLocale(Locale.CANADA)); 43 LocaleUtil.getLayoutDirectionFromLocale(Locale.CANADA_FRENCH)); 45 LocaleUtil.getLayoutDirectionFromLocale(Locale.FRANCE)); 47 LocaleUtil.getLayoutDirectionFromLocale(Locale.FRENCH)); 49 LocaleUtil.getLayoutDirectionFromLocale(Locale.GERMAN)); 51 LocaleUtil.getLayoutDirectionFromLocale(Locale.GERMANY)); 53 LocaleUtil.getLayoutDirectionFromLocale(Locale.ITALIAN)) 85 Locale locale = new Locale("ar"); local [all...] |
/external/chromium/chrome/browser/google/ |
google_util.cc | 40 std::string locale = g_browser_process->GetApplicationLocale(); local 41 if (locale == "nb") 42 locale = "no"; 43 return AppendParam(url, "hl", locale);
|
/external/icu4c/common/ |
ucnv_imp.h | 47 char locale[ULOC_FULLNAME_CAPACITY]; member in struct:__anon6150 66 * @param locale locale parameter, or "" 75 const char *locale, uint32_t options,
|
ustr_imp.h | 102 char locale[32]; member in struct:UCaseMap 128 const char *locale, 138 const char *locale, 151 const char *locale, uint32_t options,
|
/external/srec/srec/Recognizer/include/ |
SR_RecognizerResultImpl.h | 54 * Locale of grammar that produced this result 56 ESR_Locale locale; member in struct:SR_RecognizerResultImpl_t 114 ESR_Locale* locale);
|
/external/srec/srec/Vocabulary/include/ |
SR_VocabularyImpl.h | 50 * Vocabulary locale. 52 ESR_Locale locale; member in struct:SR_VocabularyImpl_t 54 * String to identify TTP language associated with locale. 99 ESR_ReturnCode SR_VocabularyGetLanguageImpl(SR_Vocabulary* self, ESR_Locale* locale); 114 #define TTP_LANG(locale) locale == ESR_LOCALE_EN_US ? L("enu") : \ 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") : [all...] |
/external/webkit/Source/WebCore/platform/text/cf/ |
HyphenationCF.cpp | 43 RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCopyCurrent()); 45 return CFStringIsHyphenationAvailableForLocale(locale.get()) ? locale : 0; 52 RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCreate(kCFAllocatorDefault, cfLocaleIdentifier.get())); 54 return CFStringIsHyphenationAvailableForLocale(locale.get()) ? locale : 0; 72 RetainPtr<CFLocaleRef> locale = cfLocaleCache().get(localeIdentifier); local 73 ASSERT(locale); 75 CFIndex result = CFStringGetHyphenationLocationBeforeIndex(string.get(), beforeIndex, CFRangeMake(0, length), 0, locale.get(), 0);
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
main.cpp | 53 QString locale; local 57 locale = QLocale::system().name(); 59 if (!translator.load("wpa_gui_" + locale, resourceDir)) 60 translator.load("wpa_gui_" + locale, "lang");
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhonebookCollatorFactory.java | 20 import java.util.Locale; 28 final Locale defaultLocale = Locale.getDefault(); 34 final Locale locale; local 36 locale = new Locale("ja@collation=phonebook"); 38 locale = defaultLocale; 41 return Collator.getInstance(locale);
|
/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...] |
/external/bluetooth/glib/tests/ |
unicode-caseconv.c | 4 #include <locale.h> 17 const char *locale; local 42 locale = strings[0]; 44 if (!locale[0]) 45 locale = "C"; 47 if (strcmp (locale, current_locale) != 0) 49 setlocale (LC_CTYPE, locale); 52 if (strncmp (current_locale, locale, 2) != 0) 54 fprintf (stderr, "Cannot set locale to %s, skipping\n", locale); [all...] |
unicode-collate.c | 8 #include <locale.h> 42 gchar *locale; local 48 locale = setlocale (LC_ALL, ""); 49 if (locale == NULL || strcmp (locale, "en_US") != 0) 51 fprintf (stderr, "No suitable locale, skipping test\n");
|
/external/chromium/chrome/browser/ |
default_encoding_combo_model.cc | 17 // UI locale. 18 std::string locale = g_browser_process->GetApplicationLocale(); local 24 l10n_util::SortVectorWithStringKey(locale, &sorted_encoding_list_, true);
|
/external/chromium/chrome/browser/download/ |
download_util_unittest.cc | 8 #include <locale.h> 444 // This test doesn't run when the locale is not UTF-8 because some of the 447 std::string locale = setlocale(LC_CTYPE, NULL); local 448 StringToLowerASCII(&locale); 449 EXPECT_NE(std::string::npos, locale.find("utf-8")) 450 << "Your locale (" << locale << ") must be set to UTF-8 "
|
/external/icu4c/i18n/unicode/ |
plurfmt.h | 78 * the constructors that takes a <code>locale</code> object. To 88 * used locale. The pattern is a sequence of 121 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you 131 * Locale("fr"), status); 167 * <code>PluralFormat</code>'s constructor. If you also specify a locale in this 168 * constructor, this locale will be used to format the number in the message 183 * Creates a new <code>PluralFormat</code> for the default locale. 184 * This locale will be used to get the set of plural rules and for standard 193 * Creates a new <code>PluralFormat</code> for a given locale. 194 * @param locale the <code>PluralFormat</code> will be configured wit 525 Locale locale; member in class:PluralFormat [all...] |
/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/srec/srec/Nametag/src/ |
NametagImpl.c | 33 ESR_Locale locale; local 56 rc = result->getLocale(result, &locale); 104 if ((rc = SR_Vocabulary_etiinf_conv_from_multichar(locale, multichar, singlechar)) != ESR_SUCCESS) 106 PLogError(L("Could not convert long to short pron (input=%s, locale=%s)"), multichar, ESR_locale2str(locale));
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
GeocoderTest.java | 27 import java.util.Locale; 35 Locale locale = new Locale("en", "us"); local 36 Geocoder g = new Geocoder(mContext, locale);
|
/frameworks/base/tools/localize/ |
Configuration.h | 10 string locale; member in struct:Configuration
|
/libcore/luni/src/main/native/ |
libcore_icu_NativePluralRules.cpp | 34 Locale locale = Locale::createFromName(ScopedUtfChars(env, localeName).c_str()); local 36 PluralRules* result = PluralRules::forLocale(locale, status);
|
/packages/apps/Browser/src/com/android/browser/search/ |
SearchEngineInfo.java | 28 import java.util.Locale; 85 Locale locale = context.getResources().getConfiguration().locale; local 86 StringBuilder language = new StringBuilder(locale.getLanguage()); 87 if (!TextUtils.isEmpty(locale.getCountry())) { 89 language.append(locale.getCountry());
|
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/callback/ |
LanguageCallbackTest.java | 25 import java.util.Locale; 43 Locale locale = Locale.US; local 44 lc.setLocale(locale); 49 * locale is null
|
/external/chromium/chrome/browser/chromeos/login/ |
html_page_screen.cc | 100 const std::string locale = g_browser_process->GetApplicationLocale(); local 102 locale, input_method::kAllInputMethods, ""); 127 const std::string locale = g_browser_process->GetApplicationLocale(); local 129 locale, input_method::kKeyboardLayoutsOnly, "");
|