Home
last modified time | relevance | path

Searched refs:main_part (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/components/translate/common/
Dtranslate_util.cc19 std::string* main_part, in SplitIntoMainAndTail() argument
21 DCHECK(main_part); in SplitIntoMainAndTail()
29 *main_part = chunks[0]; in SplitIntoMainAndTail()
30 *tail_part = language.substr(main_part->size()); in SplitIntoMainAndTail()
75 std::string main_part, tail_part; in ToTranslateLanguageSynonym() local
76 SplitIntoMainAndTail(*language, &main_part, &tail_part); in ToTranslateLanguageSynonym()
77 if (main_part.empty()) in ToTranslateLanguageSynonym()
82 if (main_part == kLanguageCodeSynonyms[i].chrome_language) { in ToTranslateLanguageSynonym()
83 main_part = std::string(kLanguageCodeSynonyms[i].translate_language); in ToTranslateLanguageSynonym()
88 *language = main_part + tail_part; in ToTranslateLanguageSynonym()
[all …]
/external/chromium_org/chrome/browser/translate/
Dtranslate_prefs.cc73 const std::string& main_part = tokens[0]; in ExpandLanguageCodes() local
74 if (seen.find(main_part) == seen.end()) { in ExpandLanguageCodes()
75 expanded_languages->push_back(main_part); in ExpandLanguageCodes()
76 seen.insert(main_part); in ExpandLanguageCodes()
477 std::string main_part = tokens[0]; in ConvertLangCodeForTranslation() local
480 if (main_part == "zh") in ConvertLangCodeForTranslation()
483 translate::ToTranslateLanguageSynonym(&main_part); in ConvertLangCodeForTranslation()
484 return main_part; in ConvertLangCodeForTranslation()
/external/chromium/sdch/open-vcdiff/src/
Dgflags_reporting.cc115 string main_part = (string(" -") + flag.name + in DescribeOneFlag() local
117 const char* c_string = main_part.c_str(); in DescribeOneFlag()
118 int chars_left = static_cast<int>(main_part.length()); in DescribeOneFlag()
/external/open-vcdiff/gflags/src/
Dgflags_reporting.cc115 string main_part = (string(" -") + flag.name + in DescribeOneFlag() local
117 const char* c_string = main_part.c_str(); in DescribeOneFlag()
118 int chars_left = static_cast<int>(main_part.length()); in DescribeOneFlag()