Searched refs:main_part (Results 1 – 4 of 4) sorted by relevance
19 std::string* main_part, in SplitIntoMainAndTail() argument21 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() local76 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 …]
73 const std::string& main_part = tokens[0]; in ExpandLanguageCodes() local74 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() local480 if (main_part == "zh") in ConvertLangCodeForTranslation()483 translate::ToTranslateLanguageSynonym(&main_part); in ConvertLangCodeForTranslation()484 return main_part; in ConvertLangCodeForTranslation()
115 string main_part = (string(" -") + flag.name + in DescribeOneFlag() local117 const char* c_string = main_part.c_str(); in DescribeOneFlag()118 int chars_left = static_cast<int>(main_part.length()); in DescribeOneFlag()