rename wxURI::GetUser to wxURI::GetUserInfo and add wxURI::GetUser and wxURI::GetPassword

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-28 20:01:44 +00:00
parent b9d6a5f3d8
commit 4860d40db4
4 changed files with 88 additions and 32 deletions

View File

@@ -239,16 +239,16 @@ wxInputStream *wxURL::GetInputStream()
}
m_error = wxURL_NOERR;
if (HasUser())
if (HasUserInfo())
{
size_t dwPasswordPos = m_user.find(':');
size_t dwPasswordPos = m_userinfo.find(':');
if (dwPasswordPos == wxString::npos)
m_protocol->SetUser(m_user);
m_protocol->SetUser(m_userinfo);
else
{
m_protocol->SetUser(m_user(0, dwPasswordPos));
m_protocol->SetPassword(m_user(dwPasswordPos+1, m_user.length() + 1));
m_protocol->SetUser(m_userinfo(0, dwPasswordPos));
m_protocol->SetPassword(m_userinfo(dwPasswordPos+1, m_userinfo.length() + 1));
}
}