Lines Matching refs:std
188 bool QPDecode(const std::string& input, std::string* output) { in QPDecode()
189 std::string temp; in QPDecode()
191 std::string::const_iterator it = input.begin(); in QPDecode()
224 bool DecodeBQEncoding(const std::string& part, RFC2047EncodingType enc_type, in DecodeBQEncoding()
225 const std::string& charset, std::string* output) { in DecodeBQEncoding()
226 std::string decoded; in DecodeBQEncoding()
258 bool DecodeWord(const std::string& encoded_word, in DecodeWord()
259 const std::string& referrer_charset, in DecodeWord()
261 std::string* output) { in DecodeWord()
267 std::wstring wide_output; in DecodeWord()
286 std::string tmp; in DecodeWord()
289 std::string charset; in DecodeWord()
293 std::string part = t.token(); in DecodeWord()
309 part.find_first_of("bBqQ") == std::string::npos) { in DecodeWord()
375 bool DecodeParamValue(const std::string& input, in DecodeParamValue()
376 const std::string& referrer_charset, in DecodeParamValue()
377 std::string* output) { in DecodeParamValue()
378 std::string tmp; in DecodeParamValue()
397 std::string decoded; in DecodeParamValue()
492 bool IsCompatibleWithASCIILetters(const std::string& lang) { in IsCompatibleWithASCIILetters()
501 typedef std::map<std::string, icu::UnicodeSet*> LangToExemplarSetMap;
513 friend bool GetExemplarSetForLang(const std::string&, icu::UnicodeSet**);
514 friend void SetExemplarSetForLang(const std::string&, icu::UnicodeSet*);
519 bool GetExemplarSetForLang(const std::string& lang, in GetExemplarSetForLang()
530 void SetExemplarSetForLang(const std::string& lang, in SetExemplarSetForLang()
533 map.insert(std::make_pair(lang, lang_set)); in SetExemplarSetForLang()
541 const std::string& lang) { in IsComponentCoveredByLang()
579 const std::wstring& languages) { in IsIDNComponentSafe()
643 std::string languages_list(WideToASCII(languages)); in IsIDNComponentSafe()
658 const std::wstring& languages, in IDNToUnicodeOneComponent()
701 std::wstring FormatViewSourceUrl(const GURL& url, in FormatViewSourceUrl()
702 const std::wstring& languages, in FormatViewSourceUrl()
713 size_t temp_offset = (*offset_for_adjustment == std::wstring::npos) ? in FormatViewSourceUrl()
714 std::wstring::npos : (*offset_for_adjustment - kViewSourceLengthPlus1); in FormatViewSourceUrl()
717 std::wstring result = net::FormatUrl(real_url, languages, in FormatViewSourceUrl()
747 *offset_for_adjustment = (temp_offset == std::wstring::npos) ? in FormatViewSourceUrl()
748 std::wstring::npos : (temp_offset + kViewSourceLengthPlus1); in FormatViewSourceUrl()
757 std::set<int> explicitly_allowed_ports;
769 static void AppendFormattedComponent(const std::string& spec,
772 std::wstring* output,
807 std::wstring GetSpecificHeader(const std::wstring& headers, in GetSpecificHeader()
808 const std::wstring& name) { in GetSpecificHeader()
812 std::string GetSpecificHeader(const std::string& headers, in GetSpecificHeader()
813 const std::string& name) { in GetSpecificHeader()
817 std::string GetFileNameFromCD(const std::string& header, in GetFileNameFromCD()
818 const std::string& referrer_charset) { in GetFileNameFromCD()
819 std::string param_value = GetHeaderParamValue(header, "filename"); in GetFileNameFromCD()
825 return std::string(); in GetFileNameFromCD()
826 std::string decoded; in GetFileNameFromCD()
829 return std::string(); in GetFileNameFromCD()
832 std::wstring GetHeaderParamValue(const std::wstring& field, in GetHeaderParamValue()
833 const std::wstring& param_name) { in GetHeaderParamValue()
837 std::string GetHeaderParamValue(const std::string& field, in GetHeaderParamValue()
838 const std::string& param_name) { in GetHeaderParamValue()
849 std::wstring IDNToUnicode(const char* host, in IDNToUnicode()
851 const std::wstring& languages, in IDNToUnicode()
856 std::copy(host, host + host_len, std::back_inserter(input16)); in IDNToUnicode()
860 *offset_for_adjustment : std::wstring::npos; in IDNToUnicode()
882 if ((output_offset != std::wstring::npos) && in IDNToUnicode()
885 output_offset = std::wstring::npos; in IDNToUnicode()
901 std::string CanonicalizeHost(const std::string& host, in CanonicalizeHost()
906 std::string canon_host; in CanonicalizeHost()
924 std::string CanonicalizeHost(const std::wstring& host, in CanonicalizeHost()
926 std::string converted_host; in CanonicalizeHost()
931 std::string GetDirectoryListingHeader(const string16& title) { in GetDirectoryListingHeader()
938 std::string result; in GetDirectoryListingHeader()
959 bool IsCanonicalizedHostCompliant(const std::string& host) { in IsCanonicalizedHostCompliant()
967 for (std::string::const_iterator i(host.begin()); i != host.end(); ++i) { in IsCanonicalizedHostCompliant()
992 std::string GetDirectoryListingEntry(const string16& name, in GetDirectoryListingEntry()
993 const std::string& raw_bytes, in GetDirectoryListingEntry()
997 std::string result; in GetDirectoryListingEntry()
1031 std::wstring StripWWW(const std::wstring& text) { in StripWWW()
1032 const std::wstring www(L"www."); in StripWWW()
1038 const std::string& content_disposition, in GetSuggestedFilename()
1039 const std::string& referrer_charset, in GetSuggestedFilename()
1053 const std::string filename_from_cd = GetFileNameFromCD(content_disposition, in GetSuggestedFilename()
1072 const std::string unescaped_url_filename = UnescapeURLComponent( in GetSuggestedFilename()
1135 std::set<int>::const_iterator it = in IsPortAllowedByOverride()
1136 std::find(explicitly_allowed_ports.begin(), in IsPortAllowedByOverride()
1155 bool ParseHostAndPort(std::string::const_iterator host_and_port_begin, in ParseHostAndPort()
1156 std::string::const_iterator host_and_port_end, in ParseHostAndPort()
1157 std::string* host, in ParseHostAndPort()
1202 bool ParseHostAndPort(const std::string& host_and_port, in ParseHostAndPort()
1203 std::string* host, in ParseHostAndPort()
1209 std::string GetHostAndPort(const GURL& url) { in GetHostAndPort()
1215 std::string GetHostAndOptionalPort(const GURL& url) { in GetHostAndOptionalPort()
1223 std::string NetAddressToString(const struct addrinfo* net_address) { in NetAddressToString()
1238 return std::string(buffer); in NetAddressToString()
1241 std::string GetHostName() { in GetHostName()
1253 return std::string(buffer); in GetHostName()
1257 std::wstring* username, in GetIdentityFromURL()
1258 std::wstring* password) { in GetIdentityFromURL()
1267 const std::wstring& languages, in AppendFormattedHost()
1268 std::wstring* output, in AppendFormattedHost()
1282 (*offset_for_adjustment == std::wstring::npos) || in AppendFormattedHost()
1284 std::wstring::npos : (*offset_for_adjustment - output->length()); in AppendFormattedHost()
1289 const std::string& spec = url.possibly_invalid_spec(); in AppendFormattedHost()
1300 *offset_for_adjustment = (*offset_into_host == std::wstring::npos) ? in AppendFormattedHost()
1301 std::wstring::npos : (new_host_begin + *offset_into_host); in AppendFormattedHost()
1302 } else if (offset_past_current_output != std::wstring::npos) { in AppendFormattedHost()
1311 void AppendFormattedComponent(const std::string& spec, in AppendFormattedComponent()
1314 std::wstring* output, in AppendFormattedComponent()
1322 ((*offset_for_adjustment == std::wstring::npos) || in AppendFormattedComponent()
1324 std::wstring::npos : (*offset_for_adjustment - output->length()); in AppendFormattedComponent()
1340 *offset_for_adjustment = (*offset_into_component == std::wstring::npos) ? in AppendFormattedComponent()
1341 std::wstring::npos : (out_component->begin + *offset_into_component); in AppendFormattedComponent()
1342 } else if (offset_past_current_output != std::wstring::npos) { in AppendFormattedComponent()
1350 std::wstring FormatUrl(const GURL& url, in FormatUrl()
1351 const std::wstring& languages, in FormatUrl()
1360 size_t offset_temp = std::wstring::npos; in FormatUrl()
1364 std::wstring url_string; in FormatUrl()
1370 *offset_for_adjustment = std::wstring::npos; in FormatUrl()
1387 const std::string& spec = url.possibly_invalid_spec(); in FormatUrl()
1390 *offset_for_adjustment = std::wstring::npos; in FormatUrl()
1394 std::copy(spec.begin(), in FormatUrl()
1397 std::back_inserter(url_string)); in FormatUrl()
1406 if ((*offset_for_adjustment != std::wstring::npos) && in FormatUrl()
1417 *offset_for_adjustment = std::wstring::npos; in FormatUrl()
1429 *offset_for_adjustment = std::wstring::npos; in FormatUrl()
1455 std::copy(spec.begin() + parsed.port.begin, in FormatUrl()
1456 spec.begin() + parsed.port.end(), std::back_inserter(url_string)); in FormatUrl()
1475 ((*offset_for_adjustment == std::wstring::npos) || in FormatUrl()
1477 std::wstring::npos : (*offset_for_adjustment - url_string.length()); in FormatUrl()
1488 *offset_for_adjustment = (*offset_into_ref == std::wstring::npos) ? in FormatUrl()
1489 std::wstring::npos : (new_parsed->ref.begin + *offset_into_ref); in FormatUrl()
1490 } else if (offset_past_current_output != std::wstring::npos) { in FormatUrl()
1496 *offset_for_adjustment = std::wstring::npos; in FormatUrl()
1514 void SetExplicitlyAllowedPorts(const std::wstring& allowed_ports) { in SetExplicitlyAllowedPorts()
1518 std::set<int> ports; in SetExplicitlyAllowedPorts()
1522 const std::wstring::value_type kComma = L','; in SetExplicitlyAllowedPorts()