Test for this URL being less than the supplied test URL. The domain part takes precedence, followed by the resource part and finally the port.
| 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 this URL being less than the supplied test URL. The domain part takes precedence, followed by the resource part and finally the port.
//
// 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 false ;
if (!m_addr && testUrl.m_addr) return true ;
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) ;
return Whole() < testUrl.Whole() ? true : false ;
}