/external/chromium_org/chrome/browser/extensions/api/i18n/ |
i18n_api.cc | 26 static const char kEmptyAcceptLanguagesError[] = "accept-languages is empty."; 33 // Currently, there are 2 ways to set browser's accept-languages: through UI 34 // or directly modify the preference file. The accept-languages set through 35 // UI is guranteed to be valid, and the accept-languages string returned from 38 // code, and accept-languages are seperatd by "," without surrrounding 40 // of the language code) on accept-languages set through editing preference 48 std::vector<std::string> languages; local 49 base::SplitString(accept_languages, ',', &languages); 50 languages.erase(std::remove(languages.begin(), languages.end(), "") [all...] |
/external/chromium_org/base/win/ |
i18n_unittest.cc | 18 std::vector<std::wstring> languages; local 19 EXPECT_TRUE(GetUserPreferredUILanguageList(&languages)); 21 languages.size()); 22 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), 23 end = languages.end(); scan != end; ++scan) { 30 std::vector<std::wstring> languages; local 31 EXPECT_TRUE(GetThreadPreferredUILanguageList(&languages)); 33 languages.size()); 34 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), 35 end = languages.end(); scan != end; ++scan) [all...] |
i18n.h | 18 // Adds to |languages| the list of user preferred UI languages from MUI, if 22 std::vector<std::wstring>* languages); 24 // Adds to |languages| the list of thread, process, user, and system preferred 25 // UI languages from MUI, if available, falling-back on the user default UI 28 std::vector<std::wstring>* languages);
|
i18n.cc | 39 // in |languages|. |function| identifies the function to call and |flags| is 42 // |languages|. 44 std::vector<wchar_t>* languages) { 47 DCHECK(languages); 63 languages->resize(buffer_length); 65 &(*languages)[0], &buffer_length) && 67 DCHECK(languages->size() == buffer_length); 71 << "Failed getting preferred UI languages."; 75 << "Failed getting size of preferred UI languages."; 121 std::vector<std::wstring>* languages) { [all...] |
/external/chromium_org/chrome/browser/spellchecker/ |
spellcheck_service_unittest.cc | 41 std::vector<std::string> languages; local 44 accept_languages, "en-US", &languages); 46 EXPECT_EQ(1U, languages.size()); 47 EXPECT_EQ("en-US", languages[0]); 54 std::vector<std::string> languages; local 57 accept_languages, "en-US", &languages); 59 EXPECT_EQ(1U, languages.size()); 60 EXPECT_EQ("en-US", languages[0]); 68 std::vector<std::string> languages; local 71 accept_languages, "en-US", &languages); 85 std::vector<std::string> languages; local 103 std::vector<std::string> languages; local [all...] |
/external/chromium_org/chrome/common/net/ |
url_util.h | 15 void WriteURLToClipboard(const GURL& url, const std::string& languages);
|
url_util.cc | 16 void WriteURLToClipboard(const GURL& url, const std::string& languages) { 24 net::FormatUrl(url, languages, net::kFormatUrlOmitNothing,
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
NavigatorLanguage.h | 17 virtual Vector<String> languages() = 0;
|
Navigator.cpp | 129 Vector<String> Navigator::languages() function in class:blink::Navigator 131 Vector<String> languages; local 134 languages.append(defaultLanguage()); 135 return languages; 139 acceptLanguages.split(',', languages); 142 // that the accept languages are already sane and support BCP47. It is 144 for (size_t i = 0; i < languages.size(); ++i) { 145 String& token = languages[i]; 151 return languages;
|
/external/chromium_org/components/language_usage_metrics/ |
language_usage_metrics.cc | 25 std::set<int> languages; local 26 ParseAcceptLanguages(accept_languages, &languages); 27 std::for_each(languages.begin(), languages.end(), RecordAcceptLanguage); 65 std::set<int>* languages) { 66 languages->clear(); 71 languages->insert(language_code);
|
language_usage_metrics.h | 19 // Records accept languages as a UMA histogram. |accept_languages| is a 20 // case-insensitive comma-separated list of languages/locales of either xx, 44 // |languages|. 46 std::set<int>* languages);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
Language.cpp | 46 Vector<AtomicString> languages = userPreferredLanguages(); local 47 if (!languages.isEmpty()) 48 return languages[0]; 75 Vector<AtomicString> languages; 76 languages.reserveInitialCapacity(1); 77 languages.append(platformLanguage()); 78 return languages;
|
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/ |
l10n_util_test_util.cc | 33 std::vector<std::string> languages; local 34 languages.push_back(language_code); 36 id, std::string(), std::string(), layouts, languages, true,
|
/external/chromium_org/chrome/browser/ui/ |
elide_url.h | 24 // formatted, but un-elided, string is returned. |languages| is a comma 37 const std::string& languages);
|
status_bubble.h | 38 // the Hide() method is called. languages is the value of Accept-Language 40 virtual void SetURL(const GURL& url, const std::string& languages) = 0;
|
/external/chromium_org/chromeos/ime/ |
input_method_whitelist.cc | 41 std::vector<std::string> languages; local 42 Tokenize(kInputMethods[i].language_code, kLanguageDelimiter, &languages); 43 DCHECK(!languages.empty()); 51 languages, local
|
/external/lldb/scripts/ |
finish-swig-wrapper-classes.sh | 21 # for scripting languages should be installed. 57 languages="Python" 60 for curlang in $languages
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/ |
mapping_file_provider.cc | 74 // Returns true if languages contains language. 75 bool HasLanguage(const CountryLanguages* languages, const string& language) { 76 const char** const start = languages->available_languages; 77 const char** const end = start + languages->available_languages_size; 127 const CountryLanguages* languages, const string& language, 134 if (HasLanguage(languages, normalized_locale_str)) { 140 if (HasLanguage(languages, full_locale)) { 146 if (HasLanguage(languages, language)) { 154 if (HasLanguage(languages, lang_with_script)) { 163 if (HasLanguage(languages, lang_with_region)) [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/ |
Makefile.PL | 11 --languages=Perl --langmap=Perl:+.t \
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
TranslateInfoBarDelegate.java | 35 String[] languages) { 38 triggeredFromMenu, languages);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/i18n/getMessage/ |
popup.js | 15 var languages = languageList.join(","); 17 chrome.i18n.getMessage("chrome_accept_languages", languages));
|
/external/chromium_org/third_party/libaddressinput/src/cpp/src/ |
post_box_matchers.cc | 108 std::vector<std::string> languages(1, "und"); 113 languages.push_back(language.base); 119 it = languages.begin(); 120 it != languages.end(); ++it) {
|
/external/chromium_org/chrome/browser/dom_distiller/ |
tab_utils_android.cc | 36 std::string languages; // Empty if Profile cannot be retrieved. local 38 languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages); 50 languages,
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
SVGGlyph.h | 87 && languages == other.languages; 105 Vector<String> languages; member in struct:blink::SVGGlyph
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
ScriptLoader.cpp | 117 DEFINE_STATIC_LOCAL(LanguageSet, languages, ()); 118 if (languages.isEmpty()) { 119 languages.add("javascript"); 120 languages.add("javascript1.0"); 121 languages.add("javascript1.1"); 122 languages.add("javascript1.2"); 123 languages.add("javascript1.3"); 124 languages.add("javascript1.4"); 125 languages.add("javascript1.5"); 126 languages.add("javascript1.6") [all...] |