Test for equality between this URL and a supplied test value
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzUrl::operator== | (hzUrl&,) |
Declared in file: hzUrl.h
Defined in file : hzUrl.cpp
Function Logic:
Function body:
bool hzUrl::operator== (hzUrl& testUrl)
{
// Test for equality between this URL and a supplied test value
//
// Argument: U The test URL
//
// Returns: True If this hzUrl is equal to the operand hzUrl
// False Otherwise
if (m_addr == testUrl.m_addr) return true ;
if (!m_addr && testUrl.m_addr) return false ;
if (m_addr && !testUrl.m_addr) return false ;
_url_space* thisCtl ; // This URL space
_url_space* suppCtl ; // Supplied URL space
thisCtl = _urlXlate(m_addr) ;
suppCtl = _urlXlate(testUrl.m_addr) ;
if (thisCtl->m_lenRes != suppCtl->m_lenRes) return false ;
if (thisCtl->m_port != suppCtl->m_port) return false ;
if (thisCtl->m_lenProt != suppCtl->m_lenProt) return false ;
if (thisCtl->m_lenDom != suppCtl->m_lenDom) return false ;
if (thisCtl->m_lenPort != suppCtl->m_lenPort) return false ;
return strcmp(thisCtl->m_data, suppCtl->m_data) ? false : true ;
}