Lines Matching refs:url_parse
72 virtual void ConvertFromUTF16(const url_parse::UTF16Char* input, int inputLength,
100 static inline const url_parse::UTF16Char* CharactersOrEmpty(const String& str)
102 static const url_parse::UTF16Char zero = 0;
104 reinterpret_cast<const url_parse::UTF16Char*>(str.characters()) :
163 KURLGooglePrivate::KURLGooglePrivate(const url_parse::Parsed& parsed, bool isValid)
289 String KURLGooglePrivate::componentString(const url_parse::Component& comp) const
312 url_parse::Parsed newParsed;
394 const url_parse::Parsed& parsed, bool isValid)
465 url_parse::Component path = m_url.m_parsed.path;
469 url_parse::Component file;
470 url_parse::ExtractFileName(m_url.utf8String().data(), path, &file);
499 int port = url_parse::ParsePort(m_url.utf8String().data(), m_url.m_parsed.port);
500 ASSERT(port != url_parse::PORT_UNSPECIFIED); // Checked port.len <= 0 before.
502 if (port == url_parse::PORT_INVALID || port > maximumValidPortNumber) // Mimic KURL::port()
609 url_parse::Component protocolComponent;
611 url_parse::Component(0, newProtocol.length()),
618 url_parse::Component(0, newProtocol.length()));
634 url_parse::Component(0, host.length()));
651 url_parse::Component(0, host.length()));
656 replacements.SetPort(CharactersOrEmpty(port), url_parse::Component(0, port.length()));
675 reinterpret_cast<const url_parse::UTF16Char*>(portStr.characters()),
676 url_parse::Component(0, portStr.length()));
692 url_parse::Component(0, user.length()));
707 url_parse::Component(0, pass.length()));
722 replacements.SetRef(CharactersOrEmpty(s), url_parse::Component(0, s.length()));
743 url_parse::Component(1, query.length() - 1));
752 url_parse::Component(0, query.length()));
763 url_parse::Component(0, path.length()));
808 url_canon::RawCanonOutputT<url_parse::UTF16Char> unescaped;
904 return m_url.m_parsed.CountCharactersBefore(url_parse::Parsed::HOST, false);
909 return m_url.m_parsed.CountCharactersBefore(url_parse::Parsed::PORT, true);
914 return m_url.m_parsed.CountCharactersBefore(url_parse::Parsed::PATH, false);
919 return m_url.m_parsed.CountCharactersBefore(url_parse::Parsed::QUERY, true);
926 return m_url.m_parsed.CountCharactersBefore(url_parse::Parsed::PATH, false);
928 url_parse::Component filename;
929 url_parse::ExtractFileName(m_url.utf8String().data(), m_url.m_parsed.path,