Home | History | Annotate | Download | only in base

Lines Matching refs:string

18 #include <string>
91 std::string::const_iterator host_and_port_begin,
92 std::string::const_iterator host_and_port_end,
93 std::string* host,
96 const std::string& host_and_port,
97 std::string* host,
100 // Returns a host:port string for the given URL.
101 NET_EXPORT std::string GetHostAndPort(const GURL& url);
103 // Returns a host[:port] string for the given URL, where the port is omitted
105 NET_EXPORT_PRIVATE std::string GetHostAndOptionalPort(const GURL& url);
110 NET_EXPORT bool IsHostnameNonUnique(const std::string& hostname);
137 // Returns the string representation of an IP address.
139 NET_EXPORT std::string IPAddressToString(const uint8* address,
142 // Returns the string representation of an IP address along with its port.
144 NET_EXPORT std::string IPAddressToStringWithPort(const uint8* address,
150 NET_EXPORT std::string NetAddressToString(const struct sockaddr* sa,
155 NET_EXPORT std::string NetAddressToStringWithPort(const struct sockaddr* sa,
159 NET_EXPORT std::string IPAddressToString(const IPAddressNumber& addr);
162 NET_EXPORT std::string IPAddressToStringWithPort(
166 NET_EXPORT std::string IPAddressToPackedString(const IPAddressNumber& addr);
168 // Returns the hostname of the current system. Returns empty string on failure.
169 NET_EXPORT std::string GetHostName();
178 NET_EXPORT std::string GetHostOrSpecFromURL(const GURL& url);
182 // Returns the empty string if the header is not found.
183 NET_EXPORT std::string GetSpecificHeader(const std::string& headers,
184 const std::string& name);
201 NET_EXPORT base::string16 IDNToUnicode(const std::string& host,
202 const std::string& languages);
206 NET_EXPORT std::string CanonicalizeHost(const std::string& host,
225 NET_EXPORT bool IsCanonicalizedHostCompliant(const std::string& host,
226 const std::string& desired_tld);
230 NET_EXPORT std::string GetDirectoryListingHeader(const base::string16& title);
240 // server's encoding). If |raw_bytes| is an empty string, UTF-8 encoded |name|
244 NET_EXPORT std::string GetDirectoryListingEntry(const base::string16& name,
245 const std::string& raw_bytes,
274 const std::string& languages,
277 // Creates a string representation of |url|. The IDN host name may be in Unicode
295 // Valid input offsets range from 0 to the length of the input URL string. On
297 // output string. For example, if |url| is "http://a:b@c.com/",
299 // and '.'), then on return the output string will be "http://c.com/" and the
309 const std::string& languages,
317 const std::string& languages,
329 const std::string& languages,
340 inline base::string16 FormatUrl(const GURL& url, const std::string& languages) {
354 NET_EXPORT void SetExplicitlyAllowedPorts(const std::string& allowed_ports);
381 NET_EXPORT bool ParseURLHostnameToNumber(const std::string& hostname,
386 NET_EXPORT bool ParseIPLiteralToNumber(const std::string& ip_literal,
412 NET_EXPORT bool ParseCIDRBlock(const std::string& cidr_literal,
443 NET_EXPORT_PRIVATE bool IsLocalhost(const std::string& host);
467 NetworkInterface(const std::string& name,
468 const std::string& friendly_name,
476 std::string name;
477 std::string friendly_name; // Same as |name| on non-Windows.