Home
last modified time | relevance | path

Searched refs:input_encoding (Results 1 – 2 of 2) sorted by relevance

/external/chromium/chrome/browser/search_engines/
Dtemplate_url_parser.cc273 bool IsValidEncodingString(const std::string& input_encoding) { in IsValidEncodingString() argument
274 if (input_encoding.empty()) in IsValidEncodingString()
277 if (!IsAsciiAlpha(input_encoding[0])) in IsValidEncodingString()
280 for (size_t i = 1, max = input_encoding.size(); i < max; ++i) { in IsValidEncodingString()
281 char c = input_encoding[i]; in IsValidEncodingString()
501 std::string input_encoding = UTF16ToASCII(context->GetString()); in EndElementImpl() local
502 if (IsValidEncodingString(input_encoding)) in EndElementImpl()
503 context->template_url()->add_input_encoding(input_encoding); in EndElementImpl()
Dtemplate_url.cc308 std::string input_encoding; in ReplaceSearchTermsUsingTermsData() local
323 input_encoding = encodings[i]; in ReplaceSearchTermsUsingTermsData()
327 if (input_encoding.empty()) { in ReplaceSearchTermsUsingTermsData()
333 input_encoding = "UTF-8"; in ReplaceSearchTermsUsingTermsData()
337 input_encoding = "UTF-8"; in ReplaceSearchTermsUsingTermsData()
348 url.insert(i->index, input_encoding); in ReplaceSearchTermsUsingTermsData()
389 base::UTF16ToCodepage(terms, input_encoding.c_str(), in ReplaceSearchTermsUsingTermsData()