- size_t dwPasswordPos = m_userinfo.find(':');
-
- if (dwPasswordPos == wxString::npos)
- return wxT("");
- else
- return m_userinfo(dwPasswordPos+1, m_userinfo.length() + 1);
-}
-
-// ---------------------------------------------------------------------------
-// BuildURI
-//
-// BuildURI() builds the entire URI into a useable
-// representation, including proper identification characters such as slashes
-//
-// BuildUnescapedURI() does the same thing as BuildURI(), only it unescapes
-// the components that accept escape sequences
-// ---------------------------------------------------------------------------
-
-wxString wxURI::BuildURI() const
-{
- wxString ret;
-
- if (HasScheme())
- ret = ret + m_scheme + wxT(":");
-
- if (HasServer())
- {
- ret += wxT("//");
-
- if (HasUserInfo())
- ret = ret + m_userinfo + wxT("@");
-
- ret += m_server;
-
- if (HasPort())
- ret = ret + wxT(":") + m_port;
- }
-
- ret += m_path;
-
- if (HasQuery())
- ret = ret + wxT("?") + m_query;