OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ToLanguageCode
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/chrome/browser/
language_usage_metrics.h
36
static int
ToLanguageCode
(const std::string &locale);
language_usage_metrics_unittest.cc
83
TEST(LanguageUsageMetricsTest,
ToLanguageCode
) {
88
EXPECT_EQ(JAPANESE, LanguageUsageMetrics::
ToLanguageCode
("ja"));
91
EXPECT_EQ(SPANISH, LanguageUsageMetrics::
ToLanguageCode
("Es"));
94
EXPECT_EQ(JAPANESE, LanguageUsageMetrics::
ToLanguageCode
("ja-JP"));
97
EXPECT_EQ(0, LanguageUsageMetrics::
ToLanguageCode
(std::string()));
98
EXPECT_EQ(0, LanguageUsageMetrics::
ToLanguageCode
("1234"));
102
EXPECT_EQ(30840, LanguageUsageMetrics::
ToLanguageCode
("xx"));
language_usage_metrics.cc
31
const int language_code =
ToLanguageCode
(application_locale);
38
int LanguageUsageMetrics::
ToLanguageCode
(const std::string& locale) {
67
const int language_code =
ToLanguageCode
(locales.token());
/external/chromium_org/chrome/browser/translate/
translate_browser_metrics.cc
67
LanguageUsageMetrics::
ToLanguageCode
(locale));
71
int language_code = LanguageUsageMetrics::
ToLanguageCode
(language);
77
int language_code = LanguageUsageMetrics::
ToLanguageCode
(language);
Completed in 2324 milliseconds